More brace newlines

This commit is contained in:
Spencer 2017-11-24 14:50:56 -05:00 committed by Alexander Meech
parent 9477345823
commit 8a669ccebe

View File

@ -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."));