This commit is contained in:
parent
4a05528b36
commit
6b690e16dc
1 changed files with 5 additions and 2 deletions
|
@ -36,13 +36,17 @@ public class BlockEntitySignMixin {
|
|||
ci.cancel();
|
||||
return;
|
||||
}
|
||||
if (texts[0].equals("[CLAIM]") ){
|
||||
ci.cancel();
|
||||
}
|
||||
|
||||
if (texts[0].equals("[CLAIM]") && texts[2].isEmpty() && !player.isProne) {
|
||||
if ((texts[0].equals("[claim]") || texts[0].equals("[CLAIM]")) && texts[2].isEmpty() && !player.isProne) {
|
||||
BlockEntity be = (BlockEntity) (Object) this;
|
||||
int x = be.getGlobalX();
|
||||
int y = be.getGlobalY();
|
||||
int z = be.getGlobalZ();
|
||||
|
||||
|
||||
String ownerId = player.getAccount().getUniqueId();
|
||||
int c = Region.get_owned_areas(ownerId);
|
||||
if (Permissions.has_perm(ownerId,"claims.limit."+(c+1))) {
|
||||
|
@ -59,7 +63,6 @@ public class BlockEntitySignMixin {
|
|||
}
|
||||
}
|
||||
|
||||
ci.cancel();
|
||||
if (can_claim) {
|
||||
Area area = new Area();
|
||||
area.enabled = true;
|
||||
|
|
Loading…
Reference in a new issue