More staggered teleports on game end
Logging teleports.
This commit is contained in:
parent
a756bb88a2
commit
fd17c1b254
@ -32,6 +32,7 @@ import org.bukkit.event.player.PlayerCommandPreprocessEvent;
|
|||||||
import org.bukkit.event.player.PlayerJoinEvent;
|
import org.bukkit.event.player.PlayerJoinEvent;
|
||||||
import org.bukkit.event.player.PlayerLoginEvent;
|
import org.bukkit.event.player.PlayerLoginEvent;
|
||||||
import org.bukkit.event.player.PlayerQuitEvent;
|
import org.bukkit.event.player.PlayerQuitEvent;
|
||||||
|
import org.bukkit.event.player.PlayerTeleportEvent;
|
||||||
import org.bukkit.event.server.ServerListPingEvent;
|
import org.bukkit.event.server.ServerListPingEvent;
|
||||||
|
|
||||||
import mineplex.minecraft.game.classcombat.Class.ClassManager;
|
import mineplex.minecraft.game.classcombat.Class.ClassManager;
|
||||||
@ -726,4 +727,10 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
|||||||
_skillFactory.ResetAll();
|
_skillFactory.ResetAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@EventHandler
|
||||||
|
public void TeleportLog(PlayerTeleportEvent event)
|
||||||
|
{
|
||||||
|
System.out.println("Teleporting: " + event.getPlayer().getName() + " to " + event.getTo().getWorld().getWorldFolder().getName());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -106,7 +106,7 @@ public class GameCreationManager implements Listener
|
|||||||
{
|
{
|
||||||
|
|
||||||
boolean removedPlayers = false;
|
boolean removedPlayers = false;
|
||||||
if (UtilTime.elapsed(game.GetStateTime(), 10000))
|
if (UtilTime.elapsed(game.GetStateTime(), 20000))
|
||||||
{
|
{
|
||||||
TimeUtil.start("GameCreationManager - Kick Players - " + game.GetName());
|
TimeUtil.start("GameCreationManager - Kick Players - " + game.GetName());
|
||||||
|
|
||||||
|
@ -564,7 +564,7 @@ public class GameManager implements Listener
|
|||||||
player.leaveVehicle();
|
player.leaveVehicle();
|
||||||
player.teleport(Manager.GetLobby().GetSpawn());
|
player.teleport(Manager.GetLobby().GetSpawn());
|
||||||
}
|
}
|
||||||
}, i);
|
}, i*3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user