Merge branch 'master' of ssh://dev1.mineplex.com:7999/min/Mineplex
This commit is contained in:
commit
97e083c1e7
@ -435,4 +435,9 @@ public class AntiHack extends MiniPlugin
|
||||
_enabled = b;
|
||||
System.out.println("MAC Enabled: " + b);
|
||||
}
|
||||
|
||||
public boolean IsEnabled()
|
||||
{
|
||||
return _enabled;
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
@ -40,6 +40,9 @@ public class IdleManager implements Listener
|
||||
if (event.getType() != UpdateType.FAST)
|
||||
return;
|
||||
|
||||
if (Manager.IsTournamentServer())
|
||||
return;
|
||||
|
||||
if (Manager.GetGame() == null)
|
||||
return;
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user