More brace newlines
This commit is contained in:
parent
9477345823
commit
8a669ccebe
@ -537,14 +537,17 @@ public class LootModule extends MiniPlugin
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_safezone.isInSafeZone(event.getPlayer())) {
|
if (!_safezone.isInSafeZone(event.getPlayer()))
|
||||||
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ItemStack dropped = event.getItemDrop().getItemStack();
|
ItemStack dropped = event.getItemDrop().getItemStack();
|
||||||
|
|
||||||
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.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."));
|
||||||
|
Loading…
Reference in New Issue
Block a user