WorldGuard

WorldGuard

8M Downloads

Deny drops messes with /give command

LadyCailinBot opened this issue ยท 8 comments

commented

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?

commented

Comment by wizjany

is this the vanilla give command or what?

commented

Comment by thieske66

Yes. Regular give command. any.

commented

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?

commented

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.

commented

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.

commented

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

commented

Comment by wizjany

WG doesn't know that, it just gets an event that a player is dropping an item.

commented