Recent content by _Iuri

  1. I

    Plugin Release CustomPotionAPI - make your own potion

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

    Question How get text from displayName()

    Yeah, this is the correct what to get the Component's plain text
  3. 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...
  4. 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...
  5. 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...
  6. 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.
  7. 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 =...
  8. 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...
  9. 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...
  10. I

    Gameboy Emulator in VANILLA Minecraft

    Bro, wtf
  11. 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.
  12. 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.
  13. I

    Question Get death message

    Just write a function to translate the death type value to a custom string.
  14. 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...