Fix permission check of `/as rent`, fix 'already bought' check of `/as buy`
This commit is contained in:
parent
d7cdff0b22
commit
b057271394
|
@ -297,6 +297,7 @@ public class BuyRegion extends GeneralRegion {
|
|||
} else {
|
||||
message(offlinePlayer, "buy-someoneElse");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
boolean isResell = isInResellingMode();
|
||||
|
|
|
@ -436,6 +436,7 @@ public class RentRegion extends GeneralRegion {
|
|||
// Check if the player has permission
|
||||
if(!plugin.hasPermission(offlinePlayer, "areashop.rent")) {
|
||||
message(offlinePlayer, "rent-noPermission");
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check location restrictions
|
||||
|
|
Loading…
Reference in New Issue