Yeah i know, it does not need to handle all components, just the TranslatableComponent. I will get the player locate language and return him the correct completion language
Ok, knowing that the AsyncTabCompleteEvent contains all the client information needed to translate each completion suggestion seems weird be unable to translate it via TranslatableComponent, but ok, i'm going to handle it by myself
How can i translate this?
I tried using AsyncTabCompleteEvent but the completions method just receive a List<String>, the best that i can do is add a tooltip to the completion. I need to translate it to spanish and portuguese
Thanks for your help! :devilish:
The cuestion is simple, what is better?
Supposing we want to store useful data (Location, Homes, Money, Titles) of a player and request it when PlayerMoveEvent is called. Please considerate an high amount of player for each case.
Case A: Create a class what will store the custom player data...
I get you and i am good with the implementation of the util methods.
I just wanna highlight the concept of code reduction. Within the API exists a lot of functions with void returns which hinder us at the time of programming. A clear example of this whould be the "getItem" and "setItem" of the...
This kind of little modifications has its purpose: write less, more usefull and beauty code. The structure of an api or framework should be as worked as its programming.
Suppose this: We want to disable or enable a buttom from a window. How we would write the code? Should we create a function...
This could be implemented with a new function just for Paper called "cancelled([status])" or something like that.
if(e.cancelled(true))
return;
if(e.cancelled())
return;
if(e.cancelled(false))
return; // Never will be.
Supposing that we want to exit from a cancelled event function by us, we need to do:
e.setCancelled(true);
if(e.isCancelled())
return;
Being that we could do:
if(e.setCancelled(true))
return;
This case gets more sense with a true comparison case:
ItemStack theResult =...
You could use https://papermc.io/javadocs/paper/1.18/org/bukkit/event/player/PlayerMoveEvent.html to get the player movement and verify the player with https://papermc.io/javadocs/paper/1.18/org/bukkit/entity/Entity.html#isInWater() to check if it's in water.
Or you could just use...
First all, you have a excesive amount of plugins on your server... incluiding some same plugins with diferent versions. You should free your server a little bit.
About the all IllegalArgumentException: Obiously the API changed and the previous heads are nonexistent. The next reply is the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.