#help-development
1 messages · Page 291 of 1
no, that's language specific
you'd need to have the language .json file
e.g. for me it would be called "Diamantschwert" instead
I just wanna append a string to the name, how can i do that?
if you need a name format Material.SOMETHING
but that only works for english and not all items IIRC
I think some items have a different name than their MATERIAL
although I dont remember any right now
isnt there an I18N method or something like that for them
you need the client's translation json files
ah
I use this to read those json files, but admins hate having to install the translation json https://github.com/JEFF-Media-GbR/JeffLib/blob/master/core/src/main/java/com/jeff_media/jefflib/MaterialUtils.java#L43
yeah
you have to unzip your client .jar, get the translation .json and upload it to the server lol
quite annoying
one serc
i can embed the language .json into the plugin resources or query it at runtime from web right?
this
I am not sure if there's any copyright on those files
that's why I make the admins upload it themselves
I'm brainstorming a way to edit every it in the game at once...
We ha da huge exploit that was carchdd waaaay too late to reser.
So we need to delete all the gold blocks and enchanted tools
"to edit every it"?
every item I presume
every one of what?
Jesus this phone lol
lol phone keyboards suck
We ha da huge exploit that was carchdd waaaay too late to reser.
hurt my brain
inventive talent has it all on a github page so
i think its ifne
Every Gold Block and enchanted item
wrong link
that's nice
so like
"https://assets.mcasset.cloud/1.19.2/assets/minecraft/lang/%s.json".formatted(player.getLocale())
they have every language
get the github raw instead
what;s the difference?
oooh
but you might get timed out because github requests
I am stupid
@tender shard
Do you know what do I need to change to show the messages for everyone (global chat) not for only the for the command sender?
use Bukkit.broadcastMessage or loop over online players
Bukkit.broadcastMessage
ty.
Get nbtapi, write a plugin to read all player data and remove those items frm their inv and e chest
what the heck, no. use PDC to store data in items
I changed package name in Intellij but It wasn't changed after complied in jar file
Does anyone know how to fix it?
Read what I replied to
oh my bad
if you only need it for one version, you can also easily load player files with like 2 codes of NMS
but yeah NBTAPI is probably easier
Components
I.e. have a Chat component consisting of a translation component and a literal string
However for that you will either need NMS or Paper
does minimessage components require paper for that
that's worth considering but i don't really wanna do nms
if not just shade minimessages in
You can apply minimessage stuff to itemstacks?
ah
not in spigot
you could convert it to strings
just use minimessage for the translation
You use a method from my favourite class: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/UnsafeValues.html#modifyItemStack(org.bukkit.inventory.ItemStack,java.lang.String)
the minimessage dev is also a paper dev, so that's why paper has it
jefflib also has a method to get the translationkey but obv it also uses NMS itself https://github.com/JEFF-Media-GbR/JeffLib/blob/master/core/src/main/java/com/jeff_media/jefflib/WordUtils.java#L131
yeah
he joined paper sometime after minimessage though
Disregard the deprecation though
Issue is normal chests
however you can easily get the translation key using reflection, version independent
Is there any way that you can specify a plugin is to unload before you if its in the environment? Or is it a ffa? Or are there some orders im missing
?stash
is there a way to turn a bukkit EntityType into an NMS EntityType without doing it by it's enum name?
Probably not
It worked fine on 1.12.2, it broke when we moved to 1.18.2
when a falling block falls and drops the item is there a way to detect that the item that is spawning is from a falling block?
how do i listen for and receive this data on the bukkit side (this code is on the BungeeCord proxy)
@remote swallow is there a different way to mention blocks? Because everything works fine other than the soft blocks
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
can someone explain to me how to compile CraftBukkit? I added some methods and it won't compile because e.g. of this. I have not touched this class, btw
well okay np
I have tried to contribute to spigot so many times, but it simply will never compile
one sec
?stash
havbe you applied patches
just checked and the config seems the same, what part now doesnt work since you updated
ofc I haven't. Just found it - why the heck is it at the bottom of the wiki article lol
it's full of useless pictures and the only important part is at the very bottom lmao
very true
thats normally most spigot wikis ive found
I'll try again when buildtools is done
yeah I mean, as if anyone didn't know how to fork a repo lmao
The Soft Blocks part, one that are supposed to break when siege starts
people who don't know how to click on "fork" will probably not contribute to craftbukkit lol
i dont find a part that is like that
this?
yeah
They're doing the same
alrighty, thx
do the ones that are all capitalised work
wdym?
to me it looks like that sections means those blocks can be broke in a siege
no all are capitalised, and when we initiate siege they do not break
one moment
reverse loading order basically
So if you alter the loading order you alter the unloading order - although that can have issues in in itself
Thank you both
:)
Thats what i figures
Unless something is messing with the turn order
Hey, I've come across a real strange bug. If I run the method in the Java main method the code works perfectly fine, but if I try using onLoad or onEnable neither work correctly. What on earth is going on 🤨
?paste the class
plugins do not use the Java Main method
I hope you are not using main(args)
I'm using this to load https://paste.md-5.net/ihukuwofic.java and https://paste.md-5.net/hipikidema.cs works fine, the main stuff with autogenerated by intellij
why the heck does it mark "item stack" in green lol
CTRL - F?
^
Thats not a plugin
Hm?
that does nothing to a server
nah I don't have search open
but yeah it does look like search
siege?
I was trying to use https://paste.md-5.net/marutucevu.css
other guys problem
ah okk
I tried in onEnable also
do you extend JavaPlugin
well, send your main class
does your class extend JavaPlugin? Does it have a plugin.yml?
how do i trigger a siege btw
i love it when people only paste one method instead of the class lol
/siege <player>
the main method wont do anything there
which line enables siege lol
i cant find anything in config
in the ide it works perfectly fine but not on the spigot server
because thats an ide
yes, but in teh ide it's not a plugin
wait lemme see
unless you run a spigot server in your ide that does nothing
I mean, I thought if it was working in the ide it should work fine on the server also no?
I mean I moved it to onEnable ofc
main is never called by a plugin on a server
I moved stuff to onEnable and onLoad with no luck
yes, in onEnable it will work, IF your plugin is even working
check servers latest.log for any plugin errors
there's no logs that's the fun bit
Hello is there an api for voice recognition
probably one about can;t find a plugin.yml or can;t find main
[15:32:59 INFO]: [IceCore] hi from onLoad
[15:32:59 INFO]: [IceCore] [STDOUT] loaded classSet: []
[15:32:59 INFO]: [IceCore] [STDOUT] loaded classSet: []
[15:32:59 INFO]: [IceCore] []
there are always logs
it just says that where as in the IDE that classSet isn't empty
yeah
this is the main reason i never use gp
docs are awful
config is documented
isnt**
Sadly thats what the server relies on 😭
I'm so confused upon why it works fine with the main but onEnable seems to be handling it differently lol
how are you testing your plugin ?
are you just running it from ide
because that surely wont work
No, I'm exporting to a local test server and testing from there
best option you have for help is just opening issues on their github and hoping for a quick response, otherwise just try and convince the server to swap to towny or something like that
devs went inactive a while ago
ah
yaya even I dont code that much anymore 🤔
I used to code all day
do you /reload confirm or restart when you build a new plugin
I've tried both with no luck
having only the custom plugin should not affect the plugin, mostly if it only has an onEnable and an onDisable
is there a way of getting the default attack damage and speed of a weapon (e.g. Material.DIAMOND_SWORD) or do i have to hard-code those values?
thats stored in nbt iirc
restarting should always work
put the code you want to run when the plugin gets started in onEnable
add a debug message if you want
i'm going through the debug message system now lol so confused upon where the issue is
to debug a message just send a message to the console
e.g Bukkit.getLogger().info("gugugágá");
brodcast better imo
who cares
both works
XD
and also
why broadcast a plugin load to the whole server? :DD
getServer().getConsoleSender().sendMessage("§aHello bro"); 💀
playersa should nota see-a plugins-a
because i would never have debug messages on a public servers
most debug messages arent ever left in a plugin
i havent had a plugin with config debug messages
that i would use logger for
"testing it on a local server" he said
ergo
he can use debugs
and just remove them after the plugin is complete
yeah
@remote swallow how do I find the trigger
you learn infromatics
https://i.imgur.com/Y6p1Sfk.png https://i.imgur.com/a0l0mKL.png seems like a bukkit bug or something at this point
and use trigger
siege
Just have a debuglogger that reads a value from config ti determine whether it should enable
like a person?
what
like rainbow six
you won't get it...
Like you asked where the trigger to initiate siege
and just doing /siege says its not enabled
rs trigger
I'm so confused upon why it works on the main method, but in spigot it doesn't load. Is there possibly a bug within spigot what's breaking this?
o
couldnt find the config option for it
D trigger
let me find it
what does the code actually do
the addonds class
its d latch isnt it?
It allows me to load addons in using our annotation system
spigot loads classes own way
i would guess the issue is with that and not how spigot loads
that's why plugins don't have main()
But it's strange it breaks when it gets to spigot and works fine in plain java
😭
ikik
lol
i just get this if i attempt to use it
im just sobbing because thats all i could find, boutta dig deeper
fair lol
But something can't be right for it to work with no spigot then break with spigot
@remote swallow add the world name
ohhh
from how this config looks does the breakable blocks in siege mean those can be broke in a siege?
yes
that are present in a claim
it looks like a gp bug
so theres no way to fix it?
without knowing what causes it not really
thats formatted wrong
lol
you need to have 2 spaces before the -
much things which work on default java might kill spgiot environment
async for example(spigot has exception handling for async things tho)
thats default config lol
yeah well it's formatted wrong
anyone know how to fix this error?
Executing pre-compile tasks...
Running 'before' tasks
Checking sources
Parsing java… [spigot]
java: error: release version 19 not supported
Checking dependencies… [spigot]
Dependency analysis found 0 affected files
Errors occurred while compiling module 'spigot'
javac 17 was used to compile java sources
Finished, saving caches…
Compilation failed: errors: 1; warnings: 0
Executing post-compile tasks...
Compilation failed: errors: 1; warnings: 0
Synchronizing output directories...
1/3/2023 12:02 PM - Build completed with 1 error and 0 warnings in 2 sec, 786 ms
even after changing formatting the issue perssits
java --version
PS C:\Users\King\Desktop\spigot> java --version
java 11.0.17 2022-10-18 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.17+10-LTS-269)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.17+10-LTS-269, mixed mode)
PS C:\Users\King\Desktop\spigot>
that's java 11
perfect thanks
but yeah @analog vapor it looks like a gp issue that it cant figure out those blocks can be broke, even after changing formatting the issue still persists. this is also a fresh server with just gp so pretty much can only be a gp issue
do you believe theres any way I can fix it? Other than spamming devs
you could check source and see whats causing the issue and attempt to fix it but otherwise not really
how do i check the source?
the source is the code on the github
but their codebase is just a mess and i doubt you would find it easily
@analog vapor
hi
is this how the config looks?
yes
yes
even with correct formatting their issue persists lol
which oneof the 100 places
Ebic did
somewhere in src/main folders
now add a world name that doesnt exist
and load up your server
look for
this error
lmk what you see
its starting wait
installed java 11 on my machine and still getting "java: error: release version 19 not supported"
should I completely uninstall java and install v11 again? or am I missing something here
java 11 is a bit older than java 19
whatever you are trying to run was compiled for java 19
where are you getting that error?
How do I know if an entity is a pillager captain?
when I try to build the artifact
Executing pre-compile tasks...
Running 'before' tasks
Checking sources
Parsing java… [spigot]
java: error: release version 19 not supported
Checking dependencies… [spigot]
Dependency analysis found 0 affected files
Errors occurred while compiling module 'spigot'
javac 17 was used to compile java sources
Finished, saving caches…
Compilation failed: errors: 1; warnings: 0
Executing post-compile tasks...
Compilation failed: errors: 1; warnings: 0
Synchronizing output directories...
1/3/2023 12:14 PM - Build completed with 1 error and 0 warnings in 2 sec, 769 ms
is that the one with the banner?
yeah
you could check whether the entity is instanceof Pillager, and then check if their main hand (or whatever) contains a banner
oke
is there a special NBT tag for these "captains"?
declaration: package: org.bukkit.entity, interface: Raider
oke
then it loaded the worlds properly
do you have minecraft open
no
oof
It did
what.. what's the issue?
breakable blocks dont break
how do I make this run in java 11 instead of java 19?
ERROR code when trying to build the artefact:
Executing pre-compile tasks...
Running 'before' tasks
Checking sources
Parsing java… [spigot]
java: error: release version 19 not supported
Checking dependencies… [spigot]
Dependency analysis found 0 affected files
Errors occurred while compiling module 'spigot'
javac 17 was used to compile java sources
Finished, saving caches…
Compilation failed: errors: 1; warnings: 0
Executing post-compile tasks...
Compilation failed: errors: 1; warnings: 0
Synchronizing output directories...
1/3/2023 12:14 PM - Build completed with 1 error and 0 warnings in 2 sec, 769 ms
Upon typing java --version, this is displayed in terminal:
PS C:\Users\King\Desktop\spigot> java --version
java 11.0.17 2022-10-18 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.17+10-LTS-269)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.17+10-LTS-269, mixed mode)
PS C:\Users\King\Desktop\spigot>
where it says runtime environment, is that whats running on MY machine?
because I JUST downloaded java 11, idk why its showing 18.9
is this in intellij?
yes sir
do you use maven?
looks like intellij build system
change it to jdk 17 or 11
when I only changed CraftWhatever classes in my CraftBukkit pull request, I do NOT have to run makePatches.sh right?
i don't think so since it's not mojang code
done
ok the server is starting
doesn't load for me
ip?
brb rq sorry moms calling
https://imgur.com/a/qHFUntl I switched it to SDK 11, still same error.
why are you talking about griefprevention configs in help-dev lol
upload it somewhere else pls, imgur is broken
some shitty geoblocking
that works
thats them
@fossil pike change your language level
you cannot set language level to 19 when you use jdk 11
oh
Lol
the language level must be equal or lower than the SDK you use
the language level should be the same as you set in your pom.xml or build.gradle
they use intellij build sys lol
They don't use maven or gradle
what the fuck
🤣
I haven't seen that in a looong time
must have been months ago
switch to maven RIGHT NOW
or at least gradle
I'll be real honest, the only reason I even have intellij installed is because I'm trying to add a dependency to a single plugin that doesnt run on 1.15.2, but works on 1.8, 1.12, and 1.16. It should work fine in 1.15.2, but there isn't a dependency for it, that's why I'm here. just to add that dependency
i have no clue what gradle or maven are
lol
it's a build tool
it handles the dependencies like spigot-api
it automatically compiles your code and packages it
It's more difficult that just adding the dependency
is it a free or paid plugin?
free
spigot link?
dont got a spigot for it, but I got this https://mega.nz/file/Wc0ETQxD#-kw2gc3elB6gIryv97tiX_W5OulKkZY3dlWIETvrJeA
it's the plugin root
that just seems fishy
i just uploaded it myself
Still you shouldn't do that
what does the plugin actually do lol
People doesn't usually Feel Safe downloading a Jar From Mega
does that just add fake players
yep
its just a zip with source code
🙂
you could use this https://www.spigotmc.org/resources/fakeplayer.73139/ instead
its not good enough
I need this specific one to work
I've tried alternatives
this is the superior plugin
probably would only take 10 minutes to update the nms packages
that would be great if you could help me out with that bro
you got paypal? I'll send you a few bucks
dm it
xD
is it open source
did you go to a wedding
no
sure, but lemme check the code first
this
aaa
first I gotta compile spigot 1.15.2
does jefflib not have 1.15.2
and cry
mfnalex does nms
ah
Likes Pain
fair
btw spigot now supports java 19 lol
that plugin is using my updatechecker lol
i know more nms than bukkit
what are the odds 😛
quick question: is it possible to get statistics from an offline player?
you have to read the file yourself
like server-stats?
you should be able to
they probably mean code wise lol
yes
huh then why is it declared there
tf
that doesnt work properly
maybe it was 1.12 thing
for Statistic.ITEM_ENCHANTED I get 0, but the value is supposed to be 2
the next best option you have is parse the players stat json
world/stats/uuidString.json
currently i doubt that exists
you would have to use https://github.com/SpigotMC/XenforoResourceManagerAPI/ to get the data
idk how you would check when its been downloaded
Yea Indeed
anyone have a StartALL.sh i hate to start my server with Cd Path Typing .-.
If it doesn't exist, I'm open to create it for the community
for a dev server or a public facing one
multiple servers start
it should work o.O
i have only 5
Bungee etc
guess it was 1.12 thign
probably
windows or linux
Linux bro
fyi, you can start servers with a symlink
ah, no idea how to write linux ones
iirc you have to start it #!/usr/something
then can just type anything
@tender shard probably knows
then I must be doing something very wrong. I dont get the right value for Statistic.ITEM_ENCHANTED
what does it show?
not even sure what that statistic is even for
the amount of items you enchanted
#!/usr/bin/env bash
java -jar myserver.jar
what does it show for the stat and what is the expected?
supposed to be 1 currently. but returns 0
did the server save the world when you checked?
yes
interesting, what mc version?
oh you wanna start all servers from different directories?
1.19.2
wonder if it is a bug then or just overlooked in terms of fixing code for updated versions
i try
#!/bin/bash
cd /home/minecraft/CityBuild/
screen -S -d CityBuild ./start.sh
cd /home/minecraft/BungeCord/
screen -S -d Proxie ./start.sh
cd /home/minecraft/Lobby/
screen -S -d Lobbie ./start.sh
currently checking some older code to see if I made any mistakes
isnt work 🤔
create a directory, place all the symlinks of the jars, then you don't have to do no cd
#!/usr/bin/env bash
for server in CityBuild BungeeCord Lobby; do
cd /home/minecraft/$server
screen -S -d $server ./start.sh
done
also if you want to improved version of what I said
you can create a single symlink
and then tell it to run in a particular directory instead
thus only need a single jar with directories containing multiple configs instead
most people don't know that Java is happy to use a symlink
for all Server
symlink is the way I used to update like 20 servers by just replacing a single jar 🙂
what's the correct way to send an action bar message?
pretty sure there is a method part of the player object to do such things
rn i'm using player.spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText("hi")); but it's all deprecated
probably don't want to use the method for legacy
It's deprecated? didn't knew that
did you exactly copy paste my script?
Is there a known alternative?
yes
that's what i was wondering
Are you using paper?
i have both spigot and paper in my pom
They've probably deprecated it
i have both because i don't know whether you can run buildtools on paper
so i just have spigot (not spigot's api) imported and paper's api
the textcomponent method you are using is deprecated because the method you are using for it, is for legacy api stuff
ChatMessageType is not deprecated
It does kinda make sense. I never understood why the text in the hotbar was classified as chat message
so what's the new way to do it?
tf is /usr/bin/env bash
most likely because the chat packet also includes the action bar
Hey, I know that you can use invisibel armor stands to create flying text but is this still state of the art if I need many of them that also move ? and is it possible to only show the text to some players ?
spigot implements spigot api
you dont need paper api in the project
i need paper's api for some things that are unique to paper
such as armor equip event
i rarely use paper's api and just import spigot but this time i need paper
sorry Basecomponent is deprecated, and it is done so because it is mainly for internal classes. Currently I am not aware of a different way but it is deprecated because it is planned in the future to be changed or removed.
remember deprecated doesn't necessarily mean unusable
No that is true, but deprecated means sooner or later, it will be removed
i'm aware but i was just wondering if there was an alternative since they've deprecated that stuff
i'll just use that then
thanks
And as a developer you should be extra cautious when using it
not true, some deprecations are purely to warn you about something as well
that's a bad way to use deprecation tho
This is why you should read the javadocs
know a better way to warn a developer about caveats ?
especially when most of those using the api are not very experienced to begin with and fail to read javadocs or even look at them
im pretty sure alex made a thing for that
?jd
What is the best way to intercept console output ? Tried adding custom java.util.logging.Handler, but it seems it doesn't intercept all messages
you need to hook into Jansi to capture the output
looks like your server folder is NOT exactly called "CityBuild"
but sth else
Deprecation is a general term in the programming world. Whether you are a beginner or not, it's something you should know
yes
in general just means should not be used, however it is also a good way to get someone's attention when you want to warn them about something. Seems to work as intended for said purposes because many people come here asking about another way to do something because of deprecation. Sadly it still hasn't made them actually read the javadocs to see why something was deprecated though
ah interesting
As I said, deprecated for spigot doesn't necessarily mean unusuable
Will look into that, thanks 👍
Exctly, I cannot think of a better way to inform developers then using deprecation
i have used the discontinued plugin in the past
i've checked the javadoc and it says most stuff regarding components has been deprecated in favor of adventure's api
yeah
However when something becomes deprecated, there should also be an alternative communicated on the docs (unless the functionality itself doesn't make any sense)
they did that when mini joined paper
There used to be clear alternatives communicates on the spigot docs. Not quite sure why it's not there now
its Jansi and Jline
or one of the two, can't remember but those two are responsible for basically console output
Any answer ? 🥺
@Deprecated#forRemoval exists (:
Which, Spigot does not really take advantage of afaik
Yes and usually with a date defined on when it's scheduled for removal
but only since java 9 and bukkit is java 8 D:
No date is not necessary
packets probably
But usually you add a “since” also
invisible armor stands is a lot better then using the horse age bug to get an invisible entity. So in regards to the first question, yes it is an improvement over the original way in how holograms worked.
Yeah ;-;
the best way are AreaEffectClouds
It's not necessary , but it's possible
but those only work for up to 48 blocks. Invisible armor stands work up to 64 blocks
bukkit should bump to java 11 or 17
11 would be nice since every distro and macOS have at least java 11 included, but not everyone has java 17 yet in the repos
to show text to only specific players you need to work with packets, which is ideal for you anyways since you will have many armor stands and would make more sense to have fake invisible armor stands so you are not burdening the server with real entities for only text purposes lol
Yea
looks like its jline then because as i see jansi is just for parsing ansi codes, will try something rn, thanks
I knew the day would come where I have to deal with packages 😦
Any good example code anywhere ?
why the heck did paper remove their api .jars from their repo for versions older than 1.17
because they don't like outdated stuff
you are welcome, I knew it was one of them hopefully that information furthers your goal in whatever it is you are trying to accomplish 🙂
packages are not packets :p
anyways it's not as bad as you think
use something like protocol lib
if i were to make holograms i'd use packets and AOE clouds instead of stands
yeah I know but that's a shitty idea
we did not
huh
different group id
why?
com.destroytokio
paper weird
well unless you are on 1.8
well I currently have to do sth for 1.15.2
thxxx
oh was 1.17 when you changed from destroystokyo
you could just build it yourself
its probably tokyo not tokio
pretty sure paper didn't remove all their patches

when i know more about paper than the paper dev
I don't even use paper
kewl
ironically I am part of their discord, only am just to really keep tabs on the progress of it
to do what
same
yeah lol
hello, could someone explain to me, why this is not working?
AttributeModifier attributeModifier = new AttributeModifier(UUID.randomUUID(), "gak",
5.0, AttributeModifier.Operation.ADD_NUMBER, EquipmentSlot.HAND);
itemMeta.addAttributeModifier(Attribute.GENERIC_ATTACK_KNOCKBACK, attributeModifier);
Well cool kids just PR paper patches to spigot 
spigot has components?
meh
LOL
paper be like
not really
i added some of the getTranslationKey methods today, let's see if it gets merged lol
to do what?
I saw that 
i will give you adventure components are better than bungee ones
superior in what way?
what's sus?
I had the translation key methods in my lib before I even knew that paper has it builtin https://github.com/JEFF-Media-GbR/JeffLib
i fucking hate using minimessages format
its too verbose
also, what is hard in customizing a string?
i made oystermessage, so people can use either legacy codes, or minimessage - in one string
well
give me a MiniMessage.desterilise
legacy strings don't
that exists
i remember you gave me the link
i just couldnt understand it
so i made my own
fair enough, I never wrote any docs
its like 6 lines total lol
Hi can i somehow in residence make that people cant use commands like /spawn ?
sure
public static final LegacyComponentSerializer SERIALIZER = LegacyComponentSerializer.builder().character('&')
.hexCharacter('#').hexColors().useUnusualXRepeatedCharacterHexFormat().build();
public static String translate(String toTranslate) {
return (ChatColor.translateAlternateColorCodes('&', SERIALIZER.serialize(MiniMessage.miniMessage().deserialize(toTranslate))));
}
what plugin
AOE Clouds can get text assigned ? Probably the same procedure as for Armor stands ?
I should probably extend my hex compressor to mc
residence
I hate that they call it "unusualXrepeatedCharacterHexFormat
IT'S THE DEFAULT FORMAT FFS
yes
yeah same for the general &ccolors
no the client speaks § law
well & is never used
ah, its paid i doubt many people here would know. Best to ask on the discussion page for the plugin
you always translate colour codes
& is used in every config.yml
I don't think the &x&1&2&3&4&5&6 thing is unusual, since it works with EVERY plugin that does translateAlternateColorCodes, so it even works with plugins pre 1.16 that never knew hex colors will be a thing
that's why I would not call it "unusual" but rather the default spigot way
because it makes it easier on users since you know keyboards don't have those characters on a key somewhere, and it helps developers because Java does funny things with native utf characters and what not
the §x format does not work because of translate alternate colour code lol
spigot on top jumps places to make those work
why would you even use § over &
translatealternatecode is a super old method and was created by the original devs for the purpose I stated above.
client doesn't let you enter §
to keep players happy instead of being harrassed with law speak
huh how does it work then? you got any class name in your head where I could look into out of curiosity? 😄
you can type anything with every keyboard
‰
CraftChatMessage
One day, we will have a cleaned up MC version
yes
There is
why not %color_name% instead of color codes?
keep pressing alt, then enter "0137" on your keypad, then release alt
then you got ‰
the alt code for it is alt + 0189
vanilla invented these color codes
½
0189
yeah i mean in plugin configs, instead of & color codes, %color_names%
that would be too confusing imo
is %red%Hello confusing?
yeah I just wanted to say, people are used to do &c for red, because spigot always used it, because vanilla used to do it like this
technically your keyboard is
cring
just your keyboard gives you a more stream lined way to input those things
Why?
<span style="color: red;">Hello</span>
well without my lib i should say
btuh
I typically see kids being the ones that misuse json and typically love javascript
it takes forever to type, i have to convert these components to strings and all that
because they never get any compile errors with JS lol
i just throw everything into their PDC
If you use adventure platform you shouldn't need to convert to string, even with spigot api
yeah because who needs errors to say you are doing something wrong, it should compile anyways even if it is wrong which JS does exactly that 😄
spigot api still uses strings
save it in a structure
paper uses components
yeah, future me should have to deal with it, duh
lol
what is the PDC?
Persistent Data Container
?pdc
get out
new trick to just link paper docs 
Which is why you use adventure platform to handle that for you
three links, should be enough lol
pdc is still saved in nbt just easier to access
4 if you want to link them to the NBT structure stuff
since when does Structure iumplement PDH?
to over generalize it yes
PHD in PDH
typo
in like a doctorate
wait
lmao
entire point of platform is that you don't need to do that
i might be stupid, but at least I don't have a PHD
you just get an audience from the player and just call sendMessage (or other methods), platform does the rest
but its too good
i just gotta
that is exactly what someone of the lesser kind would say
can't you usually store the audience the whole time?
oh no wait I'm confusing it
that is still more work than just using my lib and the legacy serializer
tbh I use adventure but I never used the audiences feature or anything
seems like effort
Not really
well in germany it's kinda an inside joke at universities
Thanks for the links but this answer describes it best 😄
PHD is doctor for philosophy here and many people claim it's not a proper science
lmao
instead of just Formatting.translate i would have to get audience from my player instance, serialize the minimessages text
ect
is that the only thing Germany provides PHD's in ?
me after getting my phd in gender studies: 🤑
what even is a PHD?
(hmm yes the woman is womaning)
phd is definitely always doctor of philosophy in germany
player(myPlayer).sendMessage(deserialize("<rainbow>Hello world"))
``` (assuming you have static imports :))
yeah it's also "Hello, where can I compile the latest version of Spigot to use on my server?" instead of "help craftbukkit download 1.8.8 where"
myPlayer.sendMessage(Formatting.translate("<rainbow>Hello World")
in the US we refer to doctorate degrees as PHD's not just for you know Doctor of Philosophy
much easier
we just call that a "doctor"
you can be a doctor in law, in medicine, in ...
what does PHD stand for?
What you said, we just don't care and apply it for everything
yeah and now use a translatable
or a keybind
or any chat feature not from 2012
dont need to
if i need translations ill just steal alexs code
most here don't care about anything that is old
wtf it really only means doctor i nphilophy in english too, why do guys call every academic grade a PHD lmao
that makes so much... NOT sense
because they are all philosophers in their fields
It means the same thing, but we typically just use it to generally refer to doctorate and not really the actual thing it means because it is easier then calling everyone a doctor when they are not medical doctors because you know the pleebs in the US have a real hard time understanding the differences
(I have no idea)
lol
yeah okay true, you only have the word "doctor" to refer to people who treat you in hospitals
if you're not making a public plugin, sure
We established this already
when would i need keybinds in most plugins, and for translations i would just change all plugin messages
yeah but they're stil Dr. XYZ
even if they're skill issued in the ways of medicine
yeah but a neurologist is a doctor and the nurse isn't exactly a "real doctor" lol
you dont call them Dr. in philosophy XYZ
a nurse is not a doctor
but don't tell my boyfriend that I said this, he's a nurse
they aaaare
ok, but a co-pilot can still fly a plane, a nurse can not do anything remotely the same as a doctor
😂
How do I connect two plugins into one?
yeah sure, but yo uknew exactly what I meant
why would you do this
in germany we have two words - Arzt, as in medical doctor, and Doktor, which is EVERY kind of doctor. it can be a medical doctor, or a doctor in law, whatever
just add the 2 plugins
point is the average person in the US only understands that when you say doctor they automatically think a doctor for medical stuff
Include the child as a dependency in the plugin.yml. Make one or more classes that can be reached from the other plugin
and typically don't understand that is what you call someone with a doctorates
yeah IIRC you also call teachers in highschool "professor" even though they aren't professors
i had a biology teacher called Dr. Iforgot and everyone assumed she was a real doctor
in the US we do not
turned out she wasnt she just had a phd
unless they really are a professor
oh okay, I've seen this in many movies
omw to call my german friend working in kindergarten a professor
you even call your neighbour by lastname in germany
its very rare to have a professor that teaches at a high school
unless you know them very well
it's shitty, yes
thanks SPD
we do that here if you are from the country side and referring to an entire family or you are being very formal
every german state has their own abitur (highest graduation you can achieve in normal school)
breh
abitur is like A levels I guess
over here you just get a high school diploma and then a bachelor then a master then a phd
I am curious though what the German high social class is like
I only have my abitur and two STAATSEXAMEN (state exams) in law
like how they act and talk etc
sexy men
amen
😏
not very different from any other person
they usually also just live in normal houses like these
they drive an expensive bmw or mercedes
looks like an average house
that's what I said
the difference is:
does germany have a housing problem or smth
average person only rents one apartment in of those houses
oh
the rich people own the full house lol
this is not a normal
house
that is a normal house in europe
that's like 500 meters away from my place
in münster that's definitely one of the more expensive houses
i dont get how americans can afford those big ahh houses thats prolly like 200k here
that create sextain's
this is my street
bro lives in detroit
looks like britain
nah my city is beautiful, google "Münster NRW"
We had a 5k square foot house before. It was quite nice, then we sold it for like 1.3 mil
it actually looks nice
Is a pdc faster than a database connection 🤔 would using them async be an option ? 🫣
damn lol
the westphalian treaty of peace was signed in my city like 500 years ago lol
yeah idk every time I see pictures of US houses I'm like damn, you get it so nice
it ended the 100 year war
A chest with all player data my plugin need 😄
I lived in the UK and people just had these small ass houses stuck to each other
With PDC you don’t introduce any notion of async
its very similar in France
not all are small
i'd hate to live in a house attached to someone else's
but the walls are cardboard and the next supermarket is 12 miles away
stuff like this
i live in a house not connected to anyone
was what I saw in the UK
fuckin terrible
you went to tourist areas then
glorified apartment block
villages are not like that
uh no I lived there lol
i live in a place with mostly semi detached houses
you lived in a council estate
couldn't you just set them in a async runnabel ?
Isn't doing stuff async always better ?
there is like a handful of states where most people can't afford houses like that and most who appear that do are actually only renting them and don't own them. Second, those who do own those houses or bought one it takes 2 people's incomes with decent jobs to actually get approved for any kind of mortage above 300k. In the US mortages are typically set for to be paid over a period of 30 years.
idk I guess the whole city was a council estate
Think that could introduce concurrency updating issues
oof
Since it is not assumed of api consumers to call the api in asynchronous manners