Merge pull request #47 from RoboMWM/patch-12
Change portal trap check to 30 seconds
This commit is contained in:
commit
ab0ae8f793
|
|
@ -1107,7 +1107,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