WorldGuard

WorldGuard

8M Downloads

World Guard Duplication bug

LadyCailinBot opened this issue ยท 5 comments

commented

WORLDGUARD-3867 - Reported by killertudse

Hi.
I've recently discovered quite a fatal bug.

If you have a zone flagged with item-spawn deny, it is possible to duplicate items.

If you have, say 10 diamonds swords laying - You can open up in your inventory, and quickly drag,n drop them out, to drop them. The message "You are not allowed to drop items in the zone" will appear, but the diamond swords will stack.

commented

Comment by wizjany

sounds client-sided tbh. or something else is not respecting the event cancellation.
if you're getting the worldguard message ("you are not allowed to drop items...") then WG is doing its job correctly.

commented

Comment by killertudse

It is not client-sided. Here. Check this out.
I've attached 4 screenshots, showing how it's done, and then there is one of me using /invsee from another account, to see it.

commented

Comment by wizjany

i can reproduce the items stacking (which isn't actually worldguard's fault...complain to spigot about that) but the overall number of swords never increases.

commented

Comment by killertudse

Ah, you're right @wizjany. It's not actually duping, but stacking. This does however still give a pretty serious issue on a pvp server, where you can stack potions etc.
But it's a spigot issue?

commented

Comment by wizjany

all we do is set the event to cancelled.
how the item is restored to the inventory has nothing to do with us.