ignore vanilla teleports. Fixes #210
This commit is contained in:
@@ -1107,6 +1107,9 @@ class PlayerEventHandler implements Listener
|
|||||||
|
|
||||||
//these rules do not apply to admins
|
//these rules do not apply to admins
|
||||||
if(player.hasPermission("griefprevention.siegeteleport")) return;
|
if(player.hasPermission("griefprevention.siegeteleport")) return;
|
||||||
|
|
||||||
|
//Ignore vanilla teleports (usually corrective teleports? See issue #210)
|
||||||
|
if(event.getCause() == TeleportCause.UNKNOWN) return;
|
||||||
|
|
||||||
Location source = event.getFrom();
|
Location source = event.getFrom();
|
||||||
Claim sourceClaim = this.dataStore.getClaimAt(source, false, playerData.lastClaim);
|
Claim sourceClaim = this.dataStore.getClaimAt(source, false, playerData.lastClaim);
|
||||||
|
|||||||
Reference in New Issue
Block a user