Change portal trap check to 30 seconds

Player's connections would time out if they still haven't loaded everything in 30 seconds.
This commit is contained in:
RoboMWM 2016-05-06 12:08:00 -07:00
parent 47470964ec
commit 40dec36cd5

View File

@ -1105,7 +1105,7 @@ class PlayerEventHandler implements Listener
{ {
//FEATURE: when players get trapped in a nether portal, send them back through to the other side //FEATURE: when players get trapped in a nether portal, send them back through to the other side
CheckForPortalTrapTask task = new CheckForPortalTrapTask(player, event.getFrom()); CheckForPortalTrapTask task = new CheckForPortalTrapTask(player, event.getFrom());
GriefPrevention.instance.getServer().getScheduler().scheduleSyncDelayedTask(GriefPrevention.instance, task, 1200L); //after 1 minute GriefPrevention.instance.getServer().getScheduler().scheduleSyncDelayedTask(GriefPrevention.instance, task, 600L); //after 30 seconds
portalReturnMap.put(player.getUniqueId(), event.getFrom()); portalReturnMap.put(player.getUniqueId(), event.getFrom());
//FEATURE: if the player teleporting doesn't have permission to build a nether portal and none already exists at the destination, cancel the teleportation //FEATURE: if the player teleporting doesn't have permission to build a nether portal and none already exists at the destination, cancel the teleportation