Merge branch 'master' of ssh://dev1.mineplex.com:7999/min/Mineplex

This commit is contained in:
Jonathan Williams 2014-05-04 12:52:14 -07:00
commit 97e083c1e7
6 changed files with 27 additions and 1 deletions

View File

@ -435,4 +435,9 @@ public class AntiHack extends MiniPlugin
_enabled = b;
System.out.println("MAC Enabled: " + b);
}
public boolean IsEnabled()
{
return _enabled;
}
}

View File

@ -37,6 +37,9 @@ public class Fly extends MiniPlugin implements Detector
@EventHandler(priority = EventPriority.MONITOR)
public void updateFlyhack(PlayerMoveEvent event)
{
if (!Host.IsEnabled())
return;
Player player = event.getPlayer();
//100% Valid

View File

@ -32,6 +32,9 @@ public class Idle extends MiniPlugin implements Detector
@EventHandler(priority = EventPriority.MONITOR)
public void updateFlyhack(PlayerMoveEvent event)
{
if (!Host.IsEnabled())
return;
Player player = event.getPlayer();
_idleTime.put(player, System.currentTimeMillis());
@ -40,6 +43,9 @@ public class Idle extends MiniPlugin implements Detector
@EventHandler(priority = EventPriority.MONITOR)
public void updateFreeCam(UpdateEvent event)
{
if (!Host.IsEnabled())
return;
if (event.getType() != UpdateType.FAST)
return;

View File

@ -33,6 +33,9 @@ public class Speed extends MiniPlugin implements Detector
@EventHandler(priority = EventPriority.MONITOR)
public void updateSpeedhack(PlayerMoveEvent event)
{
if (!Host.IsEnabled())
return;
Player player = event.getPlayer();
//100% Valid

View File

@ -40,6 +40,9 @@ public class IdleManager implements Listener
if (event.getType() != UpdateType.FAST)
return;
if (Manager.IsTournamentServer())
return;
if (Manager.GetGame() == null)
return;

View File

@ -97,6 +97,9 @@ public class MiscManager implements Listener
@EventHandler
public void HubClockUpdate(UpdateEvent event)
{
if (Manager.IsTournamentServer())
return;
if (event.getType() != UpdateType.SLOW)
return;
@ -121,6 +124,9 @@ public class MiscManager implements Listener
@EventHandler(priority = EventPriority.LOWEST)
public void HubClockInteract(PlayerInteractEvent event)
{
if (Manager.IsTournamentServer())
return;
Player player = event.getPlayer();
if (player.getItemInHand() == null)