If I try to use the /give command like Code (Text): /give @p diamond_sword 1 0 it gives me 2 Diamond Swords, if I do Code (Text): /give @p diamond_sword 2 0 it ives me 3 ones. Somehow this does only happen on the Server with my custom plugins on it. I'm cancelling the following Events (might be useful to tell what's the problem): - EntityDamageEvent - InventoryClickEvent - PlayerSwapHandItemsEvent - PlayerDropItemEvent - FoodLevelChangeEvent - PlayerInteractEvent Thanks in advance <3 EDIT: Solved by either using /replaceitem instead of /give OR by not using PlayerDropItemEvent
Note to bypass command from other plugins you can call /minecraft:give ... This doesn't really solve the issue at the source, but just thought I would mention it.
Remove all ur plugins to a different folder and see if it still gives the erorr, then slowly add all ur plugins back one by one untill you find the culprit.
Try removing all plugins until you find the one causing the problem, then if you show us the source of the problematic plugin, or at least the relevant sections of code, I am sure someone here can help you.
That's just not enough information, but its possible the problem could be with the PlayerDropItemEvent.
Thank god, it worked, thank you very much for your help, the question is now, how should i then deny the players to drop items????
yes, i only test if the player is in lobby-mode and if he is in lobby mode its cancelled and i don't get why giving a player an item, calls an PlayerDropItemEvent ...
I'm guessing minecraft's give command makes the player drop the item at their location without them actually having the item in their inventory and setting the drop delay to 0, also making them be the only one able to pick the item up.