Remove the item drop, don't just cancel the event
This commit is contained in:
parent
af443dafdf
commit
3047c528dd
@ -546,6 +546,7 @@ public class LootModule extends MiniPlugin
|
|||||||
for (LootItemReward storedReward : _itemRewards) {
|
for (LootItemReward storedReward : _itemRewards) {
|
||||||
if (storedReward.getItemStack().isSimilar(dropped)) {
|
if (storedReward.getItemStack().isSimilar(dropped)) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
event.getItemDrop().remove();
|
||||||
event.getPlayer().sendMessage(F.main(_moduleName, "You can't drop special items in Safezones."));
|
event.getPlayer().sendMessage(F.main(_moduleName, "You can't drop special items in Safezones."));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user