disabled hub clock for tournament

This commit is contained in:
Chiss 2014-05-03 17:26:21 +10:00
parent 0ce3b3fb2d
commit 6e8bdfa769

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)