Deny drops messes with /give command
LadyCailinBot opened this issue ยท 8 comments
WORLDGUARD-3589 - Reported by thieske66
I first encountered this issue sept 27th 2015.
I have disabled item drops in my world with worldguard. The give command used to work properly under these circumstances but now it consistently sends out the "Hey, sorry but you can't drop items here!" message and give the player 2 of those items instead of one. Once I allow item-drops, this issue disappears. Which means something goes wrong when trying combining disableing item-drops and useing the give command.
This is a problem for non-op players. When I am an opperator I don't seem to have this problem.
Is there a quick-fix for this, or is this a bug that needs fixing?
Comment by wizjany
any? does that mean you've used other plugins' as well?
also, what worldguard version and server software/version are you running?
Comment by Jonathan
Any news on this? Happens with spigot 1.12.2 + WG Build 1710
Create a region or use global
Set it to item-drop deny.
Use a non-op account and type give yourname barrier 1 in console. (vanilla give)
Player gets two barriers + the you cannot drop an item message.
Edit: The vanilla command also has a drop animation, that could be the reason.
Comment by wizjany
if they are getting the deny message, that means worldguard is cancelling the event but the server is stilling dropping the item anyway. that's an issue with the server, not worldguard.
Comment by Jonathan
But worldguard shouldn't deny the vanilla give command, should it? I am mean you can reproduce this with just spigot + worldguard and a non op player
Comment by wizjany
WG doesn't know that, it just gets an event that a player is dropping an item.
fixed (at least the duplication) by paper here PaperMC/Paper#5536
finally fixed in spigot here: https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/commits/34d40b0eb7e48d27750970d913df88666585927a