#help-development

1 messages Β· Page 956 of 1

echo basalt
#

I also just got paid

#

15$

#

to change 2 lines of code

hybrid turret
#

you know turkish, illusion?

echo basalt
#

From a plugin I already worked on before

echo basalt
hybrid turret
#

damn

#

touche

tired star
#

damn youre almost software engineer?

hybrid turret
#

"almost"

echo basalt
#

I have a degree in software engineering I guess it means something

#

Got it because I had to like pick a course

hybrid turret
#

damn, bro made it

tired star
#

how do you get paid so little though

hybrid turret
#

bc he accepts it XD

tired star
#

:D

echo basalt
#

And I was like "fuck it imma go on a programming course I get to have an excuse for being on my laptop in class"

echo basalt
hybrid turret
#

lol

echo basalt
#

Sometimes I am broke

#

Sometimes things come up

tired star
#

I too, am an engineer

hybrid turret
#

how does someone even make money these days form spigot development lol

#

aren't there like 3 servers these days?

tired star
#

ppl dont hire me for right jobs because not enough exp on papers

echo basalt
#

I legit lent my dad like my entire savings so I gotta afford food somehow

echo basalt
#

Those 8$ are dinner

hybrid turret
#

at least basically all the german servers shut down

tall dragon
#

most ppl at least

echo basalt
#

If you guys ever feel like clowns Cirque du Soleil has some banger soundtracks for y'all to get the immersive experience clown_2

tired star
#

like how is it that ppl who do nothing and almost know nothing get high paying jobs in my field here

hybrid turret
#

deep

echo basalt
#

Thing is like

#

People here get paid so little I'm actually top 10% or whatever

hybrid turret
#

πŸ’€

tired star
#

damn

tall dragon
#

i get paid 15/hr

echo basalt
#

I charge 25/hr

tall dragon
#

though i dont do software engineering

hybrid turret
#

as of rn i get just below 6€/hr but that's bc i'm in training still

#

XD

tired star
#

I dont get paid hourly ":D" I've got extra small salary and completion based bonuses

hybrid turret
echo basalt
#

Well yeah but software devs here get like 6/hr

#

And regular ppl get about 3.75

tired star
#

how you ppl afford to eat??

echo basalt
#

just work more and eat cheaper

hybrid turret
tall dragon
tired star
#

Like I eat discount food only and I can barely live here

echo basalt
hybrid turret
#

love and air

echo basalt
#

Like

hybrid turret
#

(makes more sense in german tbh)

echo basalt
#

If you want to move out of your parents' house you need more than 1 wage

#

for rent

tall dragon
#

yea thats the same for me tbh

#

its pretty much inpossible for me to do

echo basalt
#

So you and your partner need to be both working full-time to live paycheck to paycheck

hybrid turret
#

i'm currently looking for a place but that also only works bc i want to move together with my gf lol

tired star
#

I live in my own 55m2 apartment in the slums. moved out at 18.

hybrid turret
#

what country?

echo basalt
#

gigachad profile picture and has a gf

#

what a loser

hybrid turret
#

XD

#

idek why i have this picture tbh

tired star
hybrid turret
#

yea

tired star
#

finland :D

hybrid turret
#

changed my pfp when the meme was super big and never changed it back fsr

hybrid turret
tall dragon
hybrid turret
#

5 years TOGETHER

hybrid turret
#

give me a sec

echo basalt
hybrid turret
#

no nitro

valid burrow
#

u dont need nitro to change ur pfp what

hybrid turret
#

cat

#

meow

#

this is a lot better tbh

tired star
#

getting kinda scared here

#

you cat ppl always chasing us

hybrid turret
#

what even is your pfp? cat? dog?

tired star
#

its some kind of rodent :D it was on a feed bag

tall dragon
#

i thought it was a sheep πŸ˜‚

tired star
#

the picture was looking too funny and i had to steal it

hybrid turret
#

lol

#

weird looking hampter

tired star
#

I look like a hampter irl ngl

valid burrow
tired star
#

at least i got cool glasses and minecraft girlfriend

hybrid turret
echo basalt
#

at least I got lame glasses and a minecraft career

#

and minecraft collection

hybrid turret
#

lmao

#

fuck yeah minecraft

echo basalt
#

goin to bed with the minecraft pjs

#

waking up to alex

hybrid turret
#

the funniest bit is i basically start the minecraft client only for testing these days

tall dragon
hybrid turret
#

basically never play the game

echo basalt
#

Yeah

#

I've been doin that for the past at least 6 years

hybrid turret
#

lmao

tall dragon
hybrid turret
#

tfw you do programming work for a semi-dead game

tall dragon
#

thats what i am picturing

tired star
#

omg :D not like this

tall dragon
#

yea that stuff was messed up

#

it was on yt kids too πŸ’€

hybrid turret
tall dragon
#

yea there was this trend on youtube

tired star
#

couldnt get through a full video

tall dragon
#

people making. interesting... videos

#

and then marking it kid friendly lmfaooo

hybrid turret
#

tf kinda videos??!

#

oh

#

oh

#

oh no

#

is it what i think it is?

echo basalt
#

elsagate type shit

hybrid turret
#

elsagate??

#

i doubt i should google all that stuff while on work πŸ’€

tall dragon
#

you shoulnt xD

echo basalt
#

making sexually questionable videos with cartoon characters and labelling them as kid friendly so they get abused on yt kids

hybrid turret
#

oh god

#

internet moment

tired star
#

when I was a webdeveloper i used to watch animal documentaries half of the day

hybrid turret
#

that was random

tall dragon
hybrid turret
#

i AM a webdev rn (mostly writing java (spigot) bc i don't have enough stuff to do on work kekw)

tired star
#

I had to get that off my chest

tall dragon
#

anything else?

tired star
#

it was just hanging in the office and drinking coffee thank god for covid and remote work

#

then I just drank coffee at home and played acoustic guitar

#

my neighbours love me btw

#

now what was I even coding

tall dragon
tired star
#

ah yes thank you for reminding...

#

NO SHES REAL

#

trust me, im an engineer

tall dragon
#

ah yes an engineer

#

the most trustworthy people!

tired star
#

you can ask my girlfriend if you dont trust me ::D

molten hearth
#

which ai site can i find her on

tall dragon
#

lmfaoo

#

i was about to say that

tired star
#

now I wish I had bought some AI licence for bs-ing like doing a website called AI girlfriend

#

that would be dope, at least I'd have fun

#

mby I can steal a licence from the company and do it

#

have to ask my boss. he's quite the memel0rd, might let me do it

hybrid turret
hybrid turret
tired star
#

the roast is real :D this spigot community is one of the best devcommunities im slightly participating in

valid burrow
#

@hybrid turret if you ever need more cat images for your profile

#

my collection of cats

hybrid turret
#

oh this is beautiful

#

heck yeah

trim lake
#

wtf is this error, while compiling plugin? πŸ˜„

hybrid turret
#

uhm

#

i would say we need more error

trim lake
#

thats all what is saying

hybrid turret
trim lake
#

that all... thats the problem

hybrid turret
#

where does this code occur?

trim lake
#

If I delete data from that config.yml its all good but WTF

valid burrow
hybrid turret
#

oh xD

trim lake
hybrid turret
#

where do you use the value set in the config?

icy beacon
#

There might be more details there

trim lake
#

what ever its gone for some reason... I runned maven clean and its gone wtf πŸ˜„

icy beacon
#

Gg

hybrid turret
#

hm

#

happens

#

lol

tender shard
hybrid turret
#

i mean it makes sense

#

but it's also kinda annoying

#

bc the logging in the inner ones is usually very slim

valid burrow
hybrid turret
#

You are missing out on critical features πŸ—£οΈ πŸ—£οΈ πŸ—£οΈ

next iron
#

im using

Structure struc = FactoryPlugin.getPlugin().getServer().getStructureManager().getStructure(new NamespacedKey("minecraft", "dropper"));```
to load a structure that i saved using a structure block but it says struc is null does anyone know what i did wrong?
#

i saved the structure as minecraft:dropper in the structure block

valid burrow
#

why r u using structure blocks lolz

next iron
lost matrix
hybrid turret
#

why tf does var exist in java? just type the type???

#

i also feel like it would be bad practice to use var

tired star
#

use let instead

#

:D

hybrid turret
#

js joke

#

lol

tired star
#

( Ν‘Β° ΝœΚ– Ν‘Β°)

echo basalt
#

Β―_(ツ)_/Β―

hybrid turret
#

(β•―Β°β–‘Β°)β•―οΈ΅ ┻━┻

tired star
#

( Ν‘Β° ΝœΚ– Ν‘Β°)

next iron
#

so the stuff before colon is namespace and after is key right

hybrid turret
#

let's talk about this again (kinda)

If i'm using an SQLite-DB (so a file), i should load everything onEnable, no? Bc if I don't i will access the .db-file over and over again when trying to get data, correct?

kindred sentinel
hybrid turret
#

wat

#

what kinda question is that? lol

kindred sentinel
#

Math

hybrid turret
#

0.3?

#

wat

echo basalt
#

lol

#

no

#

hah

next iron
kindred sentinel
#

Nah, my js code says its 0.30000000000000004

echo basalt
#

java says it's prob 0.29999999999999999999991

river oracle
hybrid turret
#

ahhh yes floating point errors

#

mh

river oracle
#

Thats a IEEE 754 rounding error

next iron
echo basalt
#

y2k you're a nerd

hybrid turret
#

but who gives a shit?

echo basalt
#

how dare you know the IEEE numbers

hybrid turret
#

and what does that have to do with var?

tall dragon
#

illusion you really woke up today and chose violence huh

#

hahaha

kindred sentinel
echo basalt
#

woke up today?

#

mf I've been awake since like

tall dragon
#

fair enough

echo basalt
#

friday

river oracle
hybrid turret
#

healthy

tall dragon
#

you woke up last week

#

and chose violence

hybrid turret
#

XD

lost matrix
slender elbow
hybrid turret
#

this looks way too suspicious lol

#

fishy url

lost matrix
# slender elbow https://0.30000000000000004.com/ my favourite website

Here is camman18's YouTube short about the mystery: https://youtube.com/shorts/WvyVFSOD-uM?si=yeOzmMj6BD0a0E3c

Huge thanks to Natalie for sending it to me!

This is the bug report Oliver found: https://bugs.mojang.com/browse/MC-119369?focusedId=804740

Explore floating point errors yourself using the IEEE-754 Floating Point Converter: https://w...

β–Ά Play video
tall dragon
#

yea i saw the vid as well

#

prolly blew up

river oracle
slender elbow
#

that's just mojang logic being dumb

river oracle
#

My brain is so weird

next iron
tall dragon
ivory sleet
river oracle
tall dragon
#

if its playerdata i would load when the player logs in, save when he quits. plus save periodically every 5 min or something. async ofcourse.

river oracle
tall dragon
#

yea i use caffeine as well

#

can recommend

hybrid turret
#

ummm never heard of either

lost matrix
#

Bind your data to sessions/scopes

river oracle
#

It's google's

hybrid turret
river oracle
#

Caffeine is a caching library made by the same people who correct mistakes and issues with the first it's overall more performant and has more features

hybrid turret
#

Does this just mean "load all the data related to a player in a listener for the PlayerJoinEvent"?

tall dragon
#

pretty much

#

then keep cache it untill the player quits

hybrid turret
#

So you would have something like a PlayerDataManager?

tall dragon
#

yea. sure

hybrid turret
#

with some player-related hashmaps

#

huh, that's an interesting design idea

#

i like it

tall dragon
#

that screenshot is from this page

#

its a good read

hybrid turret
#

ahh thanks, was about to google

#

damn why are the pictures so shmol for me?

ivory sleet
#

U can prob click on it

#

To zoom in or expand it yk

hybrid turret
#

yeah i can (i dont get why spigot wants you to login to view pictures btw lol)

#

and it only opens in a new tab

#

but it won't go big mode as in 7's screenshot

valid burrow
#

could also be caused by your browser

blazing pike
#

ive been doing the bedrock java crossplay with geyser on paperMC and ive been installing LOTs of plugins, and most of them have worked flawlessly on bedrock clients. some have sadly not. i'd love a tag to indicate compatiblity ❀️

hybrid turret
#

would be kinda weird

lost matrix
#

They are probably talking about using a lock for the entire map when mutating it

echo basalt
#

uh they're talking about bucket locks

#

so you can have multiple threads working on multiple buckets at the same time

#

neat

lost matrix
#

ConcurrentHashMap has locked sections

#

Wait. Thats what CHM does internally already

hybrid turret
#

ahhhhh icicic

lost matrix
#

Just take this away: Use ConcurrentHashMap for thread safety.

hybrid turret
icy beacon
#

PlayerDataPersistenceHandler is an interface

lost matrix
#

^

icy beacon
#

Interfaces extend other interfaces

hybrid turret
#

LOL i'm stupid

#

i declared PlayerDataPersistenceHandler as class not interface

glacial moth
#

I've been trying to search in here to see if it's been asked before but I am trying to detect an item being placed into a players inventory with InventoryClickEvent

Testing the event I can see the pickup action types is good to detect when you first pick up, but when I place the item in a slot it triggers the place action but returns air

hybrid turret
#

because you "click" on air (empty slot)

glacial moth
#

yea I assumed it was the removal of air

lost matrix
hybrid turret
#

7, how would one use the PlayerDataPersistenceHandler, when intending to use the abstract way of the "data-system"?

glacial moth
hybrid turret
#

maybe InventoryMoveItemEvent? But that's just a guess that sounds like it makes sense, i'm not sure tho

lost matrix
#

Only really possible if you properly check all possible outcomes for the InventoryClickEvent

glacial moth
#

That's for moving from 1 inventory to another

hybrid turret
#

ahhh

#

right

#

i remember, damn

glacial moth
#

I'm printing the action and the only actions that are bing detected are Pickup and Place

hybrid turret
lost matrix
#

Or drag a stack across the inventories with one item landing in your slot

glacial moth
#

yea they are printing pickup and place as well

upper hazel
#

question of architecture. I have a plugin for raids and there is a class that describes the raid object itself. The raid has states that change the behavior of the raid. What is better to describe the logic inside the Raid object or create a RaidManager

lost matrix
#

Does this modify minecrafts raid events?

upper hazel
#

nah this custom raids

#

doesn't track events

lost matrix
#

How are the states defined?

upper hazel
#

timer

#

task

lost matrix
#

I meant the actual 'state' of a raid. Is it an enum? Or an interface? Or something else.

upper hazel
#

oh yes enum

#

the translator translates the words strangely

lost matrix
#

Alright, so a Raid needs to be identifyable somehow. So a RaidManager should def be created for this.
However the RaidManager only contains logic managing the Raids, not the behavior of them.
Even Raids themselves shouldnt completely handle the behavior. This responsibility lays with the RaidState.
I would let RaidState be an interface with behavior defining methods.
Otherwise your Raid will have to create a ton of logic and use switch statements to define each RaidState behavior.

upper hazel
#

that sounds cool.

#

state interface hm?

remote swallow
#

7 smile is wurst client ?!?!?!?!?1

hybrid turret
#

hahahaha

ivory sleet
hybrid turret
#

He is Kraut like me 😎

tender shard
hybrid turret
#

smelly would be "stinkende"

#

he's basically stink-bratwurst

#

or stench-bratwurst

tender shard
#

a stink-bratwurst definitely is a bratwurst that stinks though

young knoll
#

Can’t believe he made the wurst client

tender shard
#

oh cmon gulliver, that's common knowledge

lost matrix
tender shard
#

fan fact: i don't know my grandma's name

pseudo hazel
#

the good part is you dont have to

lost matrix
#

Can just call her "Omi" πŸ˜›

tender shard
hybrid quartz
#

How can I remove firework effects when player takes firework in his inventory? So like you can modify firework by adding flight durations, trails and I need to remove them and set it to just a normal firework when player's takes it in his inventory.

lost matrix
lost matrix
next iron
#

im trying to make a plugin where players can place things made out of multiple blocks

    public static boolean Create(Location loc, String type){
        Dropper dropper = new Dropper();
        dropper.loc = loc;
        Structure struc = Bukkit.getStructureManager().getStructure(new NamespacedKey("minecraft", "dropper"));
        List<Location> blockLocations = new ArrayList<>();
        if (struc != null){
            dropper.size = struc.getSize();
            for (double x = 0; x < dropper.size.getX(); x++){
                for (double y = 0; y < dropper.size.getY(); y++){
                    for (double z = 0; z < dropper.size.getZ(); z++){
                        System.out.println(x);
                        System.out.println(y);
                        System.out.println(z);
                        Location blockLoc = dropper.loc;
                        blockLoc.add(new Vector(x, y ,z));
                        if(blockLoc.getBlock().getType() != Material.AIR && blockLoc != loc){
                            //if there already is a machine there say that it failed
                            return false;
                        }
                        System.out.println("Blockloc: " + blockLoc);

                        System.out.println("Loc: " + loc);
                        System.out.println("--------------");```
this is part of the code, issue is for some reason `loc == blockLoc` in every iteration
does anyone know why?
young knoll
#

Should use .equals

next iron
#

i never changed loc

young knoll
#

you do dropper.loc = loc

#

And then you modify dropper.loc

next iron
young knoll
#

No

#

Locations are mutable and java is pass by reference for objects

#

You can .clone() locations to get a copy

next iron
next iron
lost matrix
#

This is such a depated topic

next iron
blazing ocean
next iron
#

it worked thanks alot :)

smoky anchor
blazing ocean
tender shard
next iron
hybrid turret
#

Has there always been this little hammer for final variables and classes in IJ? Lol

#

I mean I like it but it's new, no?

young knoll
hybrid turret
#

or needle?

next iron
lost matrix
tall dragon
#

but yes for me final has a dif icon as well

hybrid turret
#

i think i have the dracula theme or whatever it's called

#

but there has always been an icon?

#

i never realized

tender shard
#

i never saw that

young knoll
tall dragon
#

for me at least

hybrid turret
#

I'm using @RequiredArgsConstructor from lombok and I just realized that when trying to implement the data-structure thing by 7smile7 it shows me this issue in PlayerDataManager:

#

But I also have the annotation in DataManager

hybrid turret
tender shard
hybrid turret
#

oh FFS

#

sorry

#

i thought i screenshot it

tall dragon
#

i mean its alrdy defined

tender shard
#

usually that shouldn't cause issues though

hybrid turret
#

there we go

tender shard
#

ah yeah, your DataManager needs a matching constructor

hybrid turret
#

it should have??

#

oh wait

tender shard
#

show your DataManager class

hybrid turret
# tender shard show your DataManager class
@RequiredArgsConstructor
public abstract class DataManager<K, V> {

  private final Map<K, V> dataMap = new ConcurrentHashMap<>();
  private final PersistenceHandler<K, V> persistenceHandler;

  public void loadData(K key) {
    V value = persistenceHandler.load(key);
    dataMap.put(key, value);
  }

  public void unloadData(K key) {
    Optional.ofNullable(dataMap.remove(key)).ifPresent(value -> persistenceHandler.persist(key, value));
  }

  public V get(K Key) {
    return dataMap.get(Key);
  }
}
lost matrix
tender shard
#

RequiredArgsConstructor really only looks at the current class and doesnt add params for fields from the inherited class IIRC

#

(not sure though)

ivory sleet
#

incident_actioned Delombok

tender shard
#

yeah the constructor annotations really aren't that great

hybrid turret
lost matrix
tender shard
#

normally I like lombok but it definitely has some weird quirks

ivory sleet
#

Alex do you use lombok with kotlin?

#

Be honest

#

I feel like you could be that guy

lost matrix
#

omg

hybrid turret
#

what's wrong with lombok?

lost matrix
hybrid turret
#

hahahaha

ivory sleet
#

😭

lost matrix
#

I think lombok has some neat features, but ive def taken a step away from quite a few of them.

ivory sleet
#

Its good boilerplate reduction i suppose, buuuuuUuut Kotlin!

ivory sleet
hybrid turret
#

i like the getter and setter annotation

#

and data

#

don't really use it for more (except the constructor thing from 7's tutorial)

topaz cape
#

@lost matrix when did you get discord-helper

#

o.o

#

you were always that nitro booster that helps i have never seen your new role

next iron
lost matrix
#

infiltrated

hybrid turret
#

uh oh

#

the discord is soon gonna be a stimky bratwΓΌrst

tender shard
tender shard
#

does that even work?

#

idk

lost matrix
tender shard
#

basically all I used lombok for were data classes (which kotlin has), SneakyThrows (which kotlin has) and getters/setters (which kotlin also has basically)

#

only thing it's missing is this delegate thingy

tall dragon
#

which intellij can generate

hybrid turret
#

@lost matrix i'll just ping you now lol bc i'm still a bit confused.

Do I understand correctly that, with the abstract representation of your data-manager-system you only have to create the extending classes and interfaces? Or do yo need to do more with them?

hybrid turret
#

idk why but i like plain java

tender shard
#

kotlin is nice. although I used to really hate it at first

hybrid turret
#

maybe at some point in the future

tender shard
#

i also hated gradle at first lol

hybrid turret
#

gradle is a maven alternative, right?

#

if so, yeah no maven >

icy beacon
#

A build system & dep manager

tender shard
icy beacon
#

So basically yes

tender shard
#

gradle is like maven + more flexible (although less builtin features) + kinda more confusing at first

icy beacon
#

Agree fully

tall dragon
#

ive been thinking of learning kotlin a bit as well. but im not sure its worth it yet

tender shard
hybrid turret
#

idk if my pride can handle kotlin. i've been doing java for so long

lost matrix
# hybrid turret <@220605553368498176> i'll just ping you now lol bc i'm still a bit confused. D...

Your XDataManager extends DataManager<K, V>. This is eough for the basic functionality [load, unload, get].
If you want to have additional methods, like public List<SomeData> getLiveTopList() etc, then this should be added to your XDataManager impl.
Otherwise its complete.

The XDataPersistenceHandler extends PersistenceHandler<K, V>. As its an interface, it still requires an implementation to actually provide any functionality.

So if you want to store your data in Files, then you need to create a XDataFilePersistenceHandler which implements XDataPersistenceHandler and
has useful implementations for your data storage. The same goes for other storage medΓ­ums like databases or PersistentDataContainers.

tall dragon
tall dragon
#

oh yea i saw the basics thing thats actually rlly cool

lost matrix
#

Kotlin in my repertoire is for personal projects and smaller projects only.

tall dragon
#

but like to make plugins with kotlin. dont u need to ship an entire lib with ur plugin?

tender shard
#

stdlib, yes. but with minimizing it's not that big. or you can just use libraries feature

hybrid turret
tall dragon
#

might even write a module for basics sometime then πŸ˜‚

tender shard
#

PRs are always welcome :3

lost matrix
tall dragon
#

btw @lost matrix did that gson type adapter factory turn into anything?

lost matrix
#

Ah, yes kind of. The main problem is the type hierarchy scanning.
There are just so many classes which contain interfaces in their hierarchy. This resulted in the class name being
appended to way more objects than needed.

tall dragon
#

ahh i see. thats kind of unfortunate

tidal glacier
#

Hey

#

I need help regarding my plugin translation

inner mulch
#

?ask

undone axleBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

tidal glacier
#

I have my plugin but in Turkish

inner mulch
#

Okay, whats the problem

tender shard
tidal glacier
#

I am a Youtuber and don't have much knowledge about plugins

#

I just want it in English

#

I think you can understand

inner mulch
#

Okay do you have the sourcecode ?

tidal glacier
#

I can pay too!

inner mulch
#

I can fix it for you

tidal glacier
inner mulch
#

I can recode it

tender shard
#

well normally you'd just use a config file to make it translatable

config.yml:

boss-bar-text: "This is the bossbar text"

and then you can just do getConfig().getString("boss-bar-text")

inner mulch
tidal glacier
#

I already paid 150$ for each plugin I bought 15 plugins

sonic hollow
#

Hello, can someone help guide me through setting up the "Command Panel" plugin?

tender shard
#

don't they have a discord?

sonic hollow
#

Yes, although I've been trying to get some support from them for about 12 hours now and still nothing

tender shard
tender shard
sonic hollow
#

So I figured I'd try somewhere else

tender shard
sonic hollow
#

Yes, I've asked in that channel...

hybrid quartz
#

How can I get all firework effects and remove them with
fireworkMeta.removeEffect();?

tender shard
#

you only said that you didnt get it to do what you want

#

maybe ask some more specific questions, then someone might have an answer

sonic hollow
#

I asked the same thing i asked here..

earnest forum
#

this is the wrong channel anyways

#

this is for coding

sonic hollow
#

like i've expressed already, ive asked there without any response, im asking here since this seems to be an active channel.

earnest forum
#

still the wrong channel

#

ask a specific question because people won't respond to open questions like that

tidal glacier
#

Hey @earnest forum

earnest forum
#

what

next iron
inner mulch
#

nerd

icy beacon
#

ocp ocp ocp

inner mulch
#

what entities do hologram plugins use so that their lines are stacked perfectly while the entities have no hitbox ?

young knoll
inner mulch
lost matrix
inner mulch
#

they arent high enough

young knoll
#

No but you can spawn them at specific spots

lost matrix
inner mulch
next iron
inner mulch
upper hazel
#

I'm faced with the problem of how to draw up official contracts

icy beacon
#

?

tidal glacier
#

hey! i have a plugin which is in turkish language. I need to translate in english. I am a youtuber and bought these plugins from a dev but they were in turkish. I don't have the source code as the dev have lost them. I have around 15 plugins which needs to be translated. If anyone can help please message

I CAN EVEN PAY ( BUT NOT MORE )!!!!!!!!!!!!

eternal oxide
#

?services

undone axleBOT
tidal glacier
icy beacon
#

please refer to the link posted above

tidal glacier
icy beacon
#

please. refer to the link. posted above

#

i do not know turkish

#

i don't think elgar does either

tidal glacier
#

no!

eternal oxide
#

stop ignoring what people tell you. You were told yesterday too.

tidal glacier
#

it wasn't solved

#

nothing worked

eternal oxide
#

The answer is still the same

#

?services

undone axleBOT
icy beacon
#

keep exercising your luck i'm out

tidal glacier
#

but i dont know how to do!

lost matrix
#

Ah, in that case

#

?services

undone axleBOT
tidal glacier
eternal oxide
#

lol

lost matrix
icy beacon
#

"Did I ever tell you what the definition of insanity is? Insanity is doing the exact... same fucking thing... over and over again expecting... shit to change... That. Is. Crazy."

tidal glacier
#

ok sure!

gleaming grove
#

What event is triggered when Minecart is destroyed? EntityDeathEvent is not working

remote swallow
remote swallow
gleaming grove
#

thx

kindred sentinel
#

How to copy some files from plugin -> resources -> files(folder with files I need to copy) into the plugin's server folder?

remote swallow
#

JavaPlugin#saveResource("path in resources, eg config.yml", replace eg false)

kindred sentinel
#

thanks

remote swallow
#

love a good ghost ping

kindred sentinel
kindred sentinel
remote swallow
#

it will copy whatever you pass

#

eg you can pass something/other.yml and it will save to something/other.yml

kindred sentinel
#

but it didn't...

remote swallow
#

show what you have in resources

kindred sentinel
#

Am I doing all right?

remote swallow
#

no

#

you have to save a file

kindred sentinel
#

oh

remote swallow
#

not a folder

kindred sentinel
#

Well I want to save a folder..

remote swallow
#

you have to parse the jar file and get the resources there then

kindred sentinel
#

meh, ok, I will use for to copy all files from the resources

#

so, thanks

lost matrix
#

If you export a file in a folder then the structure remains when exported.
But exporting an entire folder is not supported in the API currently.

kindred sentinel
#

And how to save resource in defined folder? Like from resources -> files->file; to Server's Plugin Folder -> rp-files->file?

eternal oxide
#

"resources" do not exist inside the jar. they are just files/folders in the jar root

kindred sentinel
#

ohhh it explains a lot

hollow wadi
#

hey, maybe anyone knows why items disappear when i drop them on the ground it's not always but sometimes?

#

in survival server

lost matrix
#

Probably a plugin removing them, or they hit a cactus and get damaged, or you have a scuffed server configuration, or the items actually still exist but vanish for your client. And dozens of other possibilities.
Thats as precise as we can go with this amount of information.

quaint mantle
#

I use this:
if (Match.this instanceof BedFightMatch) {
BedFightMatch bedFightMatch = (BedFightMatch) Match.this;
matchPlayers.forEach(bedFightMatch::resetBeds);
}

But take a look at my code, i have provided my class so you can understand exactly what I am dealing with, I have been having trouble with resetting the beds in their original location before they were destroyed.
BedFightMatch.class: https://paste.md-5.net/ilubelojeq.java

I have gotten as far as placing the top half of the bed only, but I cannot get the full bed to place properly. The #placeBed method in my BedFightMatch.class is from a old thread I found when i was looking. But I have tried everything at this point it seems, I am completely stuck and all i need to do is figure this out and my gamemode can finally be playable!

#

Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "Your command without slash");

is not workin for me :(

#

it says symbols dispatchCommand() and getConsoleSender() arent real

#

but theyre literally in the Bukkit class

#

what am i doin wrong yall

eternal oxide
#

show the actual error

quaint mantle
#

theres no error

#

wait lemme try build

#

<identifier> expected

eternal oxide
#

its a warning/error in your ide?

quaint mantle
#

and underlines

eternal oxide
#

clear cache and restart ide

quaint mantle
quaint mantle
quaint mantle
#

File -> Repair IDE

eternal oxide
#

file menu (if intelij)

quaint mantle
#

Invalidate Caches

quaint mantle
#

ahem

quaint mantle
#

im on intellij

#

IF you do a lot of changes to your project sometimes InteliiJ gets unhappy

remote swallow
quaint mantle
remote swallow
#

its not a terminal command

quaint mantle
#

to clear intellij cache?

#

oh

#

well

#

idk what do do then

remote swallow
quaint mantle
#

We recommend that you restart the IDE via Find Action: press CtrlShiftA
and type Restart IDE.

#

Im on 2023.3 lol

remote swallow
#

im on 2024.1

quaint mantle
remote swallow
#

why ew

#

theres nothing ew about it

quaint mantle
#

They took away all the stuff im familiar with

remote swallow
#

like what

#

i still have the old ui

quaint mantle
#

Oh maybe thats the newest newest version then

#

They took away the nav bar

remote swallow
#

thats a setting you have to enable

quaint mantle
remote swallow
#

if its what i think so yeah

#

just disable the new ui or show main menu in a seperate toolbar

quaint mantle
#

Btw EpicEbic, can you scroll up and read my post? I am super stuck

quaint mantle
#

nothing changed

remote swallow
#

what spigot version are you on

quaint mantle
#

its still saying im doin smt wrong

quaint mantle
#

this is a paper project

remote swallow
#

smh

quaint mantle
#

but its essentially the same thing isnt it

remote swallow
#

?fork

undone axleBOT
#

SpigotMC maintains the Spigot server. If you are using a fork of Spigot (such as Paper, Airplane, Purpur, or other derivative works), you should seek support in the appropriate Discord servers.

quaint mantle
#

I mean

#

Its literally the same tho?

#

Same API

remote swallow
#

no

#

the api's arent the same

#

you can access all spigot api in paper (currently) but you cant use paper api in spigot

remote swallow
#

ye

quaint mantle
remote swallow
#

best i can say is place both halfs of it

quaint mantle
quaint mantle
# remote swallow best i can say is place both halfs of it

I mean clearly thats my goal here, I talked about not knowing how to place the bottom half of the bed in my post. I just need help because I have never had so much trouble with placing a block before, but BED_BLOCK (s) are so confusing.

remote swallow
#

theres most likely something relating to it on a beds block data

#

or state i dont remember

quaint mantle
#

You guys are telling me stuff I already know though which is not helpful

eternal oxide
#

That I posted

#

you set each part

#

using Dirctional to get each part

#

or setFacing if setting the direction

#

ie (Bed) Block#getBlockData()).setPart(Bed.Head)

#

setting data back of course

#

then do the same for the other half

#

using setFacing to align

quaint mantle
quaint mantle
eternal oxide
#

does Material.bed.isHead exist in 1.8?

#

If I remember 1.8 used damage values to set teh color

quaint mantle
#

Yes we have:

  • isHeadOfBed
  • setHeadOfBed
  • setFacingDirection
  • getFacing
eternal oxide
#

then just use that

hybrid turret
#

I tried to change the player skin using: ProfileUtils.applySkin(player, "21534c9bea4a10745128f0d7d5bd8fb1848ac82c793323be5c0612a91dd58bbd");
applySkin:
(1.19.4)

public static void applySkin(Player player, String skinURL) {
    ServerPlayer nmsPlayer = getNmsPlayer(player);

    broadcastPacket(new ClientboundPlayerInfoRemovePacket(List.of(nmsPlayer.getUUID())));

    PlayerProfile playerProfile = player.getPlayerProfile();

    PlayerTextures textures = playerProfile.getTextures();

    try {
      textures.setSkin(new URL("https://textures.minecraft.net/texture/" + skinURL));
    } catch (MalformedURLException ignored) {}

    broadcastPacket(new ClientboundPlayerInfoUpdatePacket(ClientboundPlayerInfoUpdatePacket.Action.ADD_PLAYER, nmsPlayer));

    ServerLevel nmsWorld = nmsPlayer.getLevel();

    ClientboundRespawnPacket respawnPacket = new ClientboundRespawnPacket(
      nmsWorld.dimensionTypeId(),
      nmsWorld.dimension(),
      BiomeManager.obfuscateSeed(nmsWorld.getSeed()),
      nmsPlayer.gameMode.getGameModeForPlayer(),
      nmsPlayer.gameMode.getPreviousGameModeForPlayer(),
      nmsWorld.isDebug(),
      nmsWorld.isFlat(),
      ClientboundRespawnPacket.KEEP_ALL_DATA,
      Optional.empty()
    );

    sendPacket(player, respawnPacket);

    player.updateInventory(); // Update the player's inventory because it will be empty after the respawn
  }

It apparently still won't change the skin, wtf am I doing wrong? :(

quaint mantle
#
private void placeBed(Location loc, BlockFace face) {
        Block block = loc.getBlock();
        BlockState bedFootState = block.getState();
        Material type = Material.BED_BLOCK;

        if (bedFootState.getType() != type) return;

        Block bedHeadBlock = block.getRelative(face.getOppositeFace());
        BlockState bedHeadState = bedHeadBlock.getState();

        if (bedHeadState.getType() != type) return;

        bedFootState.setType(type);
        bedHeadState.setType(type);

        MaterialData footData = new MaterialData(type);
        bedFootState.setRawData((byte) face.ordinal());
        bedHeadState.setRawData((byte) (face.ordinal() + 8));

        bedFootState.update(true, false);
        bedHeadState.update(true, false);
    }
quaint mantle
hybrid turret
glacial sphinx
#

I want to get the server TPS in code. How to do that?

shadow night
glacial sphinx
#

differences between runTaskTimer and runTaskTimerAsynchronously ?

shadow night
#

The latter runs it on a different thread

tidal glacier
#

hey! i have a plugin which is in turkish language. I need to translate in english. I am a youtuber and bought these plugins from a dev but they were in turkish. I don't have the source code as the dev have lost them. I have around 15 plugins which needs to be translated. If anyone can help please message

I CAN EVEN PAY ( BUT NOT MORE )!!!!!!!!!!!!

#

?service

eternal oxide
#

?services again

undone axleBOT
glacial sphinx
#

I have a translator.

tidal glacier
eternal oxide
#

You will end up getting banned if you continue to ignore what you are told

eternal oxide
#

for 15 plugins

glacial sphinx
#

You know him?

eternal oxide
#

He's been askign for two days

#

and been told multiple times to make a post in services

eternal oxide
#

questionable

tidal glacier
#

Bro how can I make a forum post?

eternal oxide
tidal glacier
#

I just made a new account

#

I can't make

quaint mantle
# eternal oxide questionable

Yeah man i tried that already just didn't wanna burden you so I tried it again!
And just don't get anything. Its not setting the beds back to where they were.

This time It doesn't even set the beds, their just not their. Before i was able to get the top half of the bed only

eternal oxide
#

so if the bed is broken your code never runs

tidal glacier
#

I have made a forum

radiant laurel
#

Hey

tidal glacier
#

Hi

radiant laurel
#

yes?

tidal glacier
#

You look same

silver flower
#

Hey!

wide coyote
#

wtf

young knoll
#

Idk sometimes you just gotta talk to yourself

glad prawn
soft hound
#

is there a way to have something like "instance of Farmable" or smth like that ?

young knoll
#

Well, there is BlockData which can be instanceof Ageable

soft hound
#

Oh, thats a great idea lol

soft hound
tidal glacier
#

Hey!

#

Any developer online?

young knoll
#

?ask

undone axleBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

tidal glacier
young knoll
#

?ask

undone axleBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

remote swallow
#

create a services thread or contact a developer on the offering section

tidal glacier
#

Not getting any good dev

remote swallow
#

find a services discord such as helpchat and create a post

tidal glacier
#

Can you give link or something

acoustic pendant
#

hey so i tried using regex (no idea about it sorry xd) and have this code =

private final Pattern effectPatern = Pattern.compile("effect\\[(\\w+),(\\d+),(\\d+),(\\d+)] @OTHER");

    public void setEffect(String input) {
        Matcher matcher = effectPatern.matcher(input);
        if (matcher.find()) {
            System.out.println("a");
            this.name = matcher.group(1);
            this.level = Integer.parseInt(matcher.group(2));
            this.duration = Integer.parseInt(matcher.group(3));
            this.chance = Double.parseDouble(matcher.group(4));
        }
    }```
But the string matches the patter but "a" isn't printing, here the string:
#

those values are name, level, duration, chance

#

does someone know why this happens?

halcyon gate
#

How do I make the list of approved materials for /hat everything in CMI?

#

Like is there a way to do it without adding every item in minecraft to the list

glad prawn
#

effect\\[(\\w+),(\\d+),(\\d+),(\\d*\\.\\d+)\\] @OTHER

acoustic pendant
#

i didn't know that sorry

#

thx!

acoustic pendant
#

or should be 1.0

glad prawn
#

.9 1.9

acoustic pendant
glad prawn
acoustic pendant
#

but if the number is just 1

#

it won't accept it right

glad prawn
#

yeah, but u want it?

acoustic pendant
#

no, but just wondering

glad prawn
#

ok

fallow kraken
#

hi, is someone can help me to do custom inventory gui, using spigot and ressource pack, i really need help to understand how to match ressource pack and a custom inventory gui. I apologize if it's the wrong channel or wrong discord to ask help tag me for any response or dm me pls

young knoll
#

You just set the name of the inventory to the custom character you make

#

Or characters

fallow kraken
#

Characters ?

azure vault
#

bump

fallow kraken
#

I read on reddit, i said Unicode or other things...

lost matrix
#

Sounds like another plugin might cause this

azure vault
fallow kraken
#

I juste need to put the same name of the gui as the gui texture file ?

azure vault
#

This server is running Paper version git-Paper-408 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: c5d168c)

#

i saw a github issue on paper's repo about this issue

#

OP resolved it by setting the spawnRadius gamerule to 0

#

but that didnt resolve my issue

#

tried a very big value too

lost matrix
azure vault
#

the event IS being called

#

but its ignoring the spawn location i set

#

only if the player hasnt played before

#

otherwise it works

#

tried teleporting the player in onJoin too

#

async

#

but doesnt work either

lost matrix
#

And you are sure the event is fired either way?

azure vault
#

Yes

lost matrix
#

Are you on the latest version? Because im about to test that out myself.

azure vault
#

im 70 versions behind

#

408

#

btw it ignores the world spawn point

#

im suspecting it might actually be something with mv core

#

because before i added that plugin i didnt debug my code, might've had a mistake during that time

#

only with it on the server

lost matrix
#

Alright i tested it out on both spigot and paper.

public final class SpigotSandbox extends JavaPlugin implements Listener {

  private Location getSpawnLoc() {
    return new Location(Bukkit.getWorlds().get(0), 0, 100, 0);
  }

  @Override
  public void onEnable() {
    Bukkit.getPluginManager().registerEvents(this, this);
  }

  @EventHandler
  public void onSpawnLoc(PlayerSpawnLocationEvent event) {
    event.setSpawnLocation(this.getSpawnLoc());
    getLogger().info("Has played before: " + event.getPlayer().hasPlayedBefore());
  }

}

It works flawlessly.

azure vault
#

yeah its probably mv core

#

mb πŸ’€

#

lemme test

frail willow
#

Can a counterfeit DRM system be created using https://www.spigotmc.org/wiki/premium-resource-placeholders-identifiers/ to prompt plugin users to input their SpigotMC ID used when downloading the plugin into the configuration file, making it more difficult for malicious distributors when spreading premium resources (as they might be compelled to display their SpigotMC ID)?

azure vault
#

yeah it was the issue

#

😭

frail willow
#

Require users to enter their SpigotMC ID in the configuration file and compare it with %%__USER__%%. If it does not match, stop the plugin.

azure vault
#

or the people who distribute the plugin can tell the ones who download it to put in X user id

frail willow
#

Yes, but introducing it this way makes it harder to directly distribute the plugin in a public place

remote swallow
#

best you can do is not provide support for them

tranquil badger
#

databases exist

#
  • code obfuscation, but kinda hard to distribute unless you already have an audience as it doesn't seem as safe to buyers.
tardy delta
#

USER as in the env variable?

inner mulch
#

Can new worlds be generated async?

tranquil badger
#

Kinda need a few things since if its not obfuscated, easier to remove in byte code

worthy yarrow
inner mulch
#

Ok interesting

worthy yarrow
#

Don't quote me, that project was like from a year ago

frail willow
remote swallow
frail willow
#

I missed "without any manual installation steps"
πŸ˜“

cinder abyss
#

Hello, how can I get a PacketType.Play.Server.OPEN_WINDOW_MERCHANT to edit the title of the inventory?
(I'm using ProtocolLib)

Here is the code I already have : https://paste.md-5.net/edosimukef.java

lost matrix
cinder abyss
lost matrix
#

What are the printed fields?

cinder abyss
#

Forjava event.getPacket().getModifier().getValues().forEach((struc) -> { System.out.println("Modifier: " + struc); }); event.getPacket().getStructures().getValues().forEach((struc) -> { System.out.println("Structures: " + struc); }); event.getPacket().getOptionalStructures().getValues().forEach((struc) -> { System.out.println("Opt Structures: " + struc); }); event.getPacket().getStrings().getValues().forEach((struc) -> { System.out.println("Strings: " + struc); });

#

it's

#
PacketContainer[type=OPEN_WINDOW_MERCHANT[class=PacketPlayOutOpenWindowMerchant, id=43], structureModifier=StructureModifier[fieldType=class java.lang.Object, data=[com.comphenix.protocol.reflect.accessors.DefaultFieldAccessor@6a032fa3, com.comphenix.protocol.reflect.accessors.DefaultFieldAccessor@2ed1ed, com.comphenix.protocol.reflect.accessors.DefaultFieldAccessor@3dd64473, com.comphenix.protocol.reflect.accessors.DefaultFieldAccessor@56998435, com.comphenix.protocol.reflect.accessors.DefaultFieldAccessor@2594c772, com.comphenix.protocol.reflect.accessors.DefaultFieldAccessor@5343db94]]]
[21:34:49 INFO]: [Named-Villagers] [STDOUT] Modifier: 10
[21:34:49 INFO]: [Named-Villagers] [STDOUT] Modifier: [net.minecraft.world.item.trading.MerchantRecipe@469b67dd, net.minecraft.world.item.trading.MerchantRecipe@45b7872b]
[21:34:49 INFO]: [Named-Villagers] [STDOUT] Modifier: 1
[21:34:49 INFO]: [Named-Villagers] [STDOUT] Modifier: 0
[21:34:49 INFO]: [Named-Villagers] [STDOUT] Modifier: true
[21:34:49 INFO]: [Named-Villagers] [STDOUT] Modifier: true
[21:34:49 INFO]: [Named-Villagers] [STDOUT] Structures: InternalStructure[handle=[net.minecraft.world.item.trading.MerchantRecipe@469b67dd, net.minecraft.world.item.trading.MerchantRecipe@45b7872b] (MerchantRecipeList)]```
lost matrix
#

So its this packet

#

Which doesnt contain any naming.

cinder abyss
#

humm

#

I should do mixin?

lost matrix
#

You need to listen for the window packet

lost matrix
cinder abyss
#

oh yeah packet

cinder abyss
#

to change it

#

but nevermind

cinder abyss
lost matrix
#

This is the packet you want

cinder abyss
#

okay so it's this one

lost matrix
cinder abyss
#

let's try some "debugging" (actually printing)

#
[21:41:53 INFO]: [Named-Villagers] [STDOUT] Modifier: net.minecraft.world.inventory.Containers@35c148d
[21:41:53 INFO]: [Named-Villagers] [STDOUT] Modifier: empty[style={hoverEvent=d[action=<action show_entity>, value=net.minecraft.network.chat.ChatHoverable$b@a5a72d1d],insertion=e1941780-6807-4846-976b-dc97dacae5c3}, siblings=[literal{Toolsmith - Toolsmith - Null}]]
[21:41:53 INFO]: [Named-Villagers] [STDOUT] Structures: InternalStructure[handle=net.minecraft.world.inventory.Containers@35c148d (Containers)]
[21:41:53 INFO]: [Named-Villagers] [STDOUT] Structures: InternalStructure[handle=empty[style={hoverEvent=d[action=<action show_entity>, value=net.minecraft.network.chat.ChatHoverable$b@a5a72d1d],insertion=e1941780-6807-4846-976b-dc97dacae5c3}, siblings=[literal{Toolsmith - Toolsmith - Null}]] (IChatMutableComponent)]```
#

Interesting

remote swallow
#

yes

frail willow
lost matrix
# cinder abyss I think I can do the remnant
  @Override
  public void onEnable() {
    ProtocolLibrary.getProtocolManager().addPacketListener(new PacketAdapter(this, PacketType.Play.Server.OPEN_WINDOW) {
      @Override
      public void onPacketSending(PacketEvent event) {
        if (event.getPacketType() != PacketType.Play.Server.OPEN_WINDOW) {
          return;
        }
        PacketContainer packet = event.getPacket();
        packet.getChatComponents().write(0, WrappedChatComponent.fromText("Utter garbage"));
      }
    });
  }
young knoll
#

lol

cinder abyss
#

And, how can I get the entity id please?

#

(I want to get the holder entity name)

inner mulch
#

#getEntityId?

cinder abyss
inner mulch
#

Safe the id you use to spawn it in the first place

cinder abyss
inner mulch
#

Wdym?

cinder abyss
inner mulch
#

You want to get a bukkit entity?

#

Your packet entity doesnt exist on the server, therefore you cant get it

cinder abyss
#

humm okay

#

I think I've found

#

like this it seems strange lol

young knoll
#

Indexes start at 0

cinder abyss
#

yeah I know but I forgot at this time lol

#

how can I get insertion?

#

(from packet.getModifier().read(2))

zinc moat
#

how do i get the config in a different file?

#

nvm

cinder abyss
graceful oak
#

I am using multiverse core to generate and regenerate mining worlds but when I have it reset every x amount of hours it only takes a minute to generate but the server is using much of the server resources to create this world it makes players not able to move. Is there a way to have multiverse core take less of the server resources and make the world slower so players can still play like normal when the worlds are resetting?

rotund ravine
#

Nope

young knoll
#

Yeah worldgen is pain

#

I eventually just pregenned some worlds to use for resource worlds

rotund ravine
#

Could do some trickery with a proxy and two servers with a shared inventory or some inventory funnel / bank system

sullen marlin
#

Generate a large world and teleport players to different small world border areas?

#

Every hours sounds very frequent....

#

Surely weeks between worlds

young knoll
#

Make regenerating resources hypixel skyblock style

graceful oak
#

The concept is the players go into this small pvp zone for resources and whatever then mine/collect there they can take out if they can get to the exit or lose if they die. They dont lose any of the items except what they gained while there. I like the idea of using the same world just different areas so I might look into that

rotund ravine
#

Md5 coming here with the un-smooth brain ideas

zinc moat
#

how do i check if a string in my config is empty?

proven musk
#

ok so

#

is the workflow for testing plugins is to make edits -> export -> restart server -> test?

#

is there an easier way or do I have to restart the server every time

tall dragon
#

you could research hotswapping

#

its possible to live reload certain code

#

but for example you cant hotswap new methods, editing method names

rotund ravine
proven musk
#

alright

rotund ravine
zinc moat
proven musk
#

whats the best way to store data about a player

#

simple stuff

#

like I just want to have a number 0,1,2 for their personal difficulty level

rotund ravine
proven musk
#

I was thinking scoreboard but maybe theres a better way

tall dragon
#

if its just one number or a couple i would use pdc

#

else i would use files

#

or a db

zinc moat
remote swallow
#

no

#

call it on config

zinc moat
#

but i need it for a specific string tho

remote swallow
#

it takes a path

#

getConfig().isSet("path")

zinc moat
#

ohh alrigth

zinc moat
remote swallow
#

yup

zinc moat
#

πŸ‘

#

Thanks so much yall i got it working

proven musk
#

so in datapacks you can't really make custom crafting recipes for custom items

#

you have to do some workarounds and it looks bad

#

can you do that in spigot?

young knoll
#

Yes

peak depot
#

you can do custom custom crafting recipies in spigot yes

zinc moat
#

on the spigot forums can i change my resources profile after i uploaded it

sullen marlin
#

yes

zinc moat
sullen marlin
#

righthand sidebar. But check you don't have a message telling you 2fa is required

zinc moat
#

i ment this one

#

of a resource

sullen marlin
#

same deal, edit resource icon in righthand bar

zinc moat
#

i think i need glasses i dont see it.

#

nvm

proven musk
young knoll
#

Tbf you can also do that in datapacks once 1.20.5 rolls around

blazing pike
young knoll
#

Pretty much everything should work

#

As geyser is just a general protocol translator

#

As for whether the plugin is fully useable by bedrock players is another story

blazing pike
young knoll
#

Well

#

Anything that relies on something other than a left click in inventories won’t work

#

Anything using display entities won’t work

blazing pike
#

where can i post images? i screenshotted the list of 57 plugins i have

#

anything requiring use of console commands also seems to work fine

young knoll
undone axleBOT
#

Can't send images? That's because you're not verified! Use !verify to complete verification.
Alternatively, you can upload screenshots to any image hosting site and share the link.

Here's some screenshot utilities that you can use to upload images.
Lightshot: https://prnt.sc
Imgur: https://imgur.com/upload
Flameshot: https://flameshot.org

blazing pike
#

im sure ill get to 100 by the time ive finished fleshing it out.

#

nova and vane didn't seem to work.

#

i know i tried to fly too high even trying nova, but i was hopeful for vane trifles

young knoll
#

Idk what either of those are

#

So

#

:p

blazing pike
hollow beacon
#

currently having a problem where tp'ing a player away from world x to y causes a 'moved too fast' to trigger. putting the player back at their initial position.

usually this is not an issue, but in this case it's a duels arena they get stuck in. not all teleportation away from the arena is handled within my plugin and effectively blocking it seems unreasonable.

putting the tresholds up is not really an option, unless propely explained.

is there a way to force-tp the player in this specific case, even if that means bypassing the anti-cheat logic from the server.

running 1.12 (unfortunately...)

young knoll
#

Anything resource pack based won’t work directly

#

But you can make bedrock resource packs

blazing pike
#

how do i dive down that rabbit hole?

peak depot
blazing pike
peak depot
#

nah screw bedrock

blazing pike
#

even parts of it. but there are plenty of individual mods to acheive some subset of its functionality

#

i have lots of console friends and every now and then one will buy a realm for a month and it fizzles. this consolidates all of us for free.

#

FTB with 300 mods is way cooler, theres no doubt about it.

near barn
#

Someone help.. My "TAB" is fucking, it's all narrow, and sometimes it refreshes and becomes wide again for 1 millisecond. I use TAB plugin by NEZNAM

chrome beacon
#

Probably caused by that NPC

#

and there's not much you can do about it

burnt current
#

I think of creating a variation of a citybuild plugin. But i dont know how to it. i dont know how to develope what a specific player owns, how its saved and on what its based (easiest is like i think to make it based on chunks so the player can claim them or so. But Citybuild plugins dont use chunks, theyre independent of them) somebody knows some tutorial or so. I cant find anything and i also cant figure out how to finde such things as i need

chrome beacon
#

Store AABBs and when interactions happen check if they're inside. If you want to improve performance use an R-tree

flint coyote
#

Also use the BoundingBox class

#

don't forget to check for the world (create a wrapper that extends the normal bounding box and has a world)

soft hound
#

wait so java void cropBreak(BlockBreakEvent event) { System.out.println(1); if(!(event.getBlock() instanceof Ageable)) return;

Is this the correct way to check if it's an ageable block? Crop

chrome beacon
soft hound
#

ahhhh ok ok

#

For some reason, it still won't work.

unborn breach
#

is ther some way to see if some one stole something out of a chest.
And is ther a way to see some one ther inventory when ther not online?

soft hound
#

so custom plugins will prob be your way

unborn breach
#

do you know any plugin where i can see someones inv when ther not on?

chrome beacon
unborn breach
#

whats the diff between help server and help dev?
they both can help me right?

flint coyote
#

Help development is for coding related questions

chrome beacon
#

help dev is for people making plugins

unborn breach
#

ahh sorry

flint coyote
#

So unless you code the plugin yourself you should ask for plugins in help server