Fixed: Ender pearls don't require access trust.
This commit is contained in:
1 parent
552e09f629
commit
7efdc80739
1 file changed
+1
-1
@@ -778,7 +778,7 @@ class PlayerEventHandler implements Listener
|
|||||||
//FEATURE: prevent players from using ender pearls to gain access to secured claims
|
//FEATURE: prevent players from using ender pearls to gain access to secured claims
|
||||||
if(event.getCause() == TeleportCause.ENDER_PEARL && GriefPrevention.instance.config_claims_enderPearlsRequireAccessTrust)
|
if(event.getCause() == TeleportCause.ENDER_PEARL && GriefPrevention.instance.config_claims_enderPearlsRequireAccessTrust)
|
||||||
{
|
{
|
||||||
Claim toClaim = this.dataStore.getClaimAt(player.getLocation(), false, playerData.lastClaim);
|
Claim toClaim = this.dataStore.getClaimAt(event.getTo(), false, playerData.lastClaim);
|
||||||
if(toClaim != null)
|
if(toClaim != null)
|
||||||
{
|
{
|
||||||
playerData.lastClaim = toClaim;
|
playerData.lastClaim = toClaim;
|
||||||
|
|||||||
Reference in new issue
Block a user