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:
parent
47470964ec
commit
40dec36cd5
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user