Fixed: Ender pearls don't require access trust.
This commit is contained in:
parent
552e09f629
commit
7efdc80739
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user