New Fake
This commit is contained in:
parent
e0f551286e
commit
2bcd828e2b
@ -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;
|
||||
|
||||
@ -1452,7 +1451,7 @@ public class EngineMain extends EngineAbstract
|
||||
{
|
||||
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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user