Fix permission check of `/as rent`, fix 'already bought' check of `/as buy`

This commit is contained in:
Thijs Wiefferink 2019-02-20 19:33:37 +01:00
parent d7cdff0b22
commit b057271394
2 changed files with 2 additions and 0 deletions

View File

@ -297,6 +297,7 @@ public class BuyRegion extends GeneralRegion {
} else {
message(offlinePlayer, "buy-someoneElse");
}
return false;
}
boolean isResell = isInResellingMode();

View File

@ -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