From 2bcd828e2bd52481c7c6b4ce6f297f741a8ac608 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Tue, 9 Feb 2016 19:41:59 +0100 Subject: [PATCH] New Fake --- .../massivecraft/factions/engine/EngineMain.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/com/massivecraft/factions/engine/EngineMain.java b/src/com/massivecraft/factions/engine/EngineMain.java index 2f157905..f30a65fa 100644 --- a/src/com/massivecraft/factions/engine/EngineMain.java +++ b/src/com/massivecraft/factions/engine/EngineMain.java @@ -12,7 +12,6 @@ import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Map.Entry; -import java.util.regex.Pattern; import java.util.Set; import org.bukkit.Bukkit; @@ -1429,7 +1428,7 @@ public class EngineMain extends EngineAbstract { if (!event.canBuild()) return; - boolean verboose = ! MUtil.isFakeEvent(event); + boolean verboose = ! isFake(event); if (canPlayerBuildAt(event.getPlayer(), PS.valueOf(event.getBlock()), verboose)) return; @@ -1440,7 +1439,7 @@ public class EngineMain extends EngineAbstract @EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true) public void blockBuild(BlockBreakEvent event) { - boolean verboose = ! MUtil.isFakeEvent(event); + boolean verboose = ! isFake(event); if (canPlayerBuildAt(event.getPlayer(), PS.valueOf(event.getBlock()), verboose)) return; @@ -1450,9 +1449,9 @@ public class EngineMain extends EngineAbstract @EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true) public void blockBuild(BlockDamageEvent event) { - if (!event.getInstaBreak()) return; + if ( ! event.getInstaBreak()) return; - boolean verboose = ! MUtil.isFakeEvent(event); + boolean verboose = ! isFake(event); if (canPlayerBuildAt(event.getPlayer(), PS.valueOf(event.getBlock()), verboose)) return; @@ -1521,7 +1520,7 @@ public class EngineMain extends EngineAbstract @EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true) public void blockBuild(HangingPlaceEvent event) { - boolean verboose = ! MUtil.isFakeEvent(event); + boolean verboose = ! isFake(event); if (canPlayerBuildAt(event.getPlayer(), PS.valueOf(event.getEntity().getLocation()), verboose)) return; @@ -1537,7 +1536,7 @@ public class EngineMain extends EngineAbstract Entity breaker = entityEvent.getRemover(); if (MUtil.isntPlayer(breaker)) return; - boolean verboose = ! MUtil.isFakeEvent(event); + boolean verboose = ! isFake(event); if ( ! canPlayerBuildAt(breaker, PS.valueOf(event.getEntity().getLocation()), verboose)) {