Update trapped in portal threshold.
Wait longer before deciding the player is trapped, since some players stand still and wait longer while chunks load around them. (10 seconds -> 60 seconds)
This commit is contained in:
parent
d46a2b1f6c
commit
47470964ec
|
|
@ -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
|
||||
CheckForPortalTrapTask task = new CheckForPortalTrapTask(player, event.getFrom());
|
||||
GriefPrevention.instance.getServer().getScheduler().scheduleSyncDelayedTask(GriefPrevention.instance, task, 200L);
|
||||
GriefPrevention.instance.getServer().getScheduler().scheduleSyncDelayedTask(GriefPrevention.instance, task, 1200L); //after 1 minute
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user