More staggered teleports on game end

Logging teleports.
This commit is contained in:
Chiss 2014-06-16 10:18:10 +10:00
parent a756bb88a2
commit fd17c1b254
3 changed files with 9 additions and 2 deletions

View File

@ -32,6 +32,7 @@ import org.bukkit.event.player.PlayerCommandPreprocessEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerLoginEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.event.player.PlayerTeleportEvent;
import org.bukkit.event.server.ServerListPingEvent;
import mineplex.minecraft.game.classcombat.Class.ClassManager;
@ -726,4 +727,10 @@ public class ArcadeManager extends MiniPlugin implements IRelation
_skillFactory.ResetAll();
}
}
@EventHandler
public void TeleportLog(PlayerTeleportEvent event)
{
System.out.println("Teleporting: " + event.getPlayer().getName() + " to " + event.getTo().getWorld().getWorldFolder().getName());
}
}

View File

@ -106,7 +106,7 @@ public class GameCreationManager implements Listener
{
boolean removedPlayers = false;
if (UtilTime.elapsed(game.GetStateTime(), 10000))
if (UtilTime.elapsed(game.GetStateTime(), 20000))
{
TimeUtil.start("GameCreationManager - Kick Players - " + game.GetName());

View File

@ -564,7 +564,7 @@ public class GameManager implements Listener
player.leaveVehicle();
player.teleport(Manager.GetLobby().GetSpawn());
}
}, i);
}, i*3);
}
}