Remove the item drop, don't just cancel the event

This commit is contained in:
ArcticZeroo 2017-11-05 15:39:51 -05:00 committed by Alexander Meech
parent af443dafdf
commit 3047c528dd
1 changed files with 1 additions and 0 deletions

View File

@ -546,6 +546,7 @@ public class LootModule extends MiniPlugin
for (LootItemReward storedReward : _itemRewards) {
if (storedReward.getItemStack().isSimilar(dropped)) {
event.setCancelled(true);
event.getItemDrop().remove();
event.getPlayer().sendMessage(F.main(_moduleName, "You can't drop special items in Safezones."));
return;
}