formatting
This commit is contained in:
parent
5922b77a42
commit
8086c96558
@ -26,8 +26,6 @@ public class GlobalClaim implements IPermissionContainer {
|
||||
player.sendMessage(PermHelper.simpleColoredText(ConfigHandler.lang.noPermissionSimple, Formatting.DARK_RED), true);
|
||||
return false;
|
||||
}
|
||||
if (perm == PermissionRegistry.MOBSPAWN)
|
||||
return false;
|
||||
return true;
|
||||
return perm != PermissionRegistry.MOBSPAWN;
|
||||
}
|
||||
}
|
||||
|
@ -255,8 +255,7 @@ public class PlayerClaimData {
|
||||
((IPlayerClaimImpl) this.player).getCurrentClaim().getDimensions(),
|
||||
TeleportUtils.roundedBlockPos(this.player.getPos()).mutableCopy(), (claim, nPos) -> false);
|
||||
this.player.teleport(tp.getX(), tp.getY(), tp.getZ());
|
||||
}
|
||||
if (this.player.getPos().squaredDistanceTo(this.trappedPos) > 0.15) {
|
||||
} else if (this.player.getPos().squaredDistanceTo(this.trappedPos) > 0.15) {
|
||||
this.trappedTick = -1;
|
||||
this.trappedPos = null;
|
||||
this.player.sendMessage(PermHelper.simpleColoredText(String.format(ConfigHandler.lang.trappedMove), Formatting.RED), false);
|
||||
|
Loading…
Reference in New Issue
Block a user