Search results

  1. I

    Question Is there a way to translate command completions?

    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
  2. I

    Question Is there a way to translate command completions?

    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
  3. I

    Question Is there a way to translate command completions?

    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:
  4. I

    Plugin Release I18n Translation System

    I love it, thanks for update it to 1.20.4. It should be added to PaperMC by default
  5. I

    Plugin Release CustomPotionAPI - make your own potion

    Thanks for the Plugin, your code is better than my. I will use it, thanks
  6. I

    Question How get text from displayName()

    Yeah, this is the correct what to get the Component's plain text
  7. I

    Speed/Efficiency PersistentDataContainer vs Class in HashMap

    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...
  8. I

    e.setCancelled should return the actual cancel status

    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...
  9. I

    e.setCancelled should return the actual cancel status

    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...
  10. I

    e.setCancelled should return the actual cancel status

    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.
  11. I

    e.setCancelled should return the actual cancel status

    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 =...
  12. I

    Looking to make a plugin that modifies water friction.

    You could use to get the player movement and verify the player with to check if it's in water. Or you could just use...
  13. I

    Question Errors on startup

    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...
  14. I

    Gameboy Emulator in VANILLA Minecraft

    Bro, wtf
  15. I

    Announcement Paper 1.18.2

    ¡The inclusion of MiniMessage is a great new! I was waiting for this. Also, a new documentation page for the PaperMC API doc. will be incredible. And much more if would allow comments and code examples by the comunity. Also, thanks for this forum. The style is amazing and beautiful.
  16. I

    How can I store an object like ArrayList in the persistent data container?

    You need to make your own extension of PersistentDataType. Maybe this page could help you.
  17. I

    Question Get death message

    Just write a function to translate the death type value to a custom string.
  18. I

    Question How apply a temporary custom effect to player?

    Well, i did my own implementations of enchantments and it works very very well, but the problem now is the following: I created an enchantment that increase your movement speed till 100%. And now i need a counter enchantment that will temporary reduce the victim's movement speed when him...
  19. I

    Question How get text from displayName()

    Yeah, sure... you can use: ((TextComponent)getDisplayName()).content() The use of Adventure for text is very annoying :/
  20. I

    Solved How can i add a Custom Enchantment?

    Well... that, i wanna add a custom enchant to my server... i tried: Enchantment.registerEnchantment(); But this doesn't works. So... which is the correct way to implement my own Enchantments?
  21. I

    Plugin Release Quartz 1.0 - Powerful command/event scheduling

    That's look really good, i will try it! Thanks for your afforts ñ_ñ