Tweaked portal trap fix.
Doubled the delay from 5 to 10 seconds before concluding a player is trapped in a nether portal and sending him back to his departure point.
This commit is contained in:
parent
c62aa621b2
commit
1b0e88b0c1
|
|
@ -976,7 +976,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, 100L);
|
GriefPrevention.instance.getServer().getScheduler().scheduleSyncDelayedTask(GriefPrevention.instance, task, 200L);
|
||||||
|
|
||||||
//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
|
||||||
if(GriefPrevention.instance.config_claims_portalsRequirePermission)
|
if(GriefPrevention.instance.config_claims_portalsRequirePermission)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user