fix permissions

This commit is contained in:
Ryder Belserion 2023-11-27 12:14:56 -05:00
parent 3eb18d193f
commit 02496da1e4
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -153,7 +153,7 @@ public class AuctionCommand implements CommandExecutor {
}
case "reload" -> {
if (!Methods.hasPermission(sender, "admin")) {
if (!Methods.hasPermission(sender, "reload")) {
sender.sendMessage(Messages.NO_PERMISSION.getMessage());
return true;
}

View File

@ -727,7 +727,7 @@ public class GuiListener implements Listener {
int ID = data.getInt("Items." + i + ".StoreID");
if (id == ID) {
if (player.hasPermission("crazyAuctions.admin") || player.hasPermission("crazyauctions.force-end")) {
if (player.hasPermission("crazyauctions.admin") || player.hasPermission("crazyauctions.force-end")) {
if (e.getAction() == InventoryAction.MOVE_TO_OTHER_INVENTORY) {
int num = 1;
for (; data.contains("OutOfTime/Cancelled." + num); num++) ;