Disabled AFK kick during Tournament

This commit is contained in:
Chiss 2014-05-03 17:23:10 +10:00
parent b432c094d9
commit 0ce3b3fb2d
1 changed files with 4 additions and 1 deletions

View File

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