mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-11-22 11:55:12 +01:00
fix permissions
This commit is contained in:
parent
3eb18d193f
commit
02496da1e4
@ -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;
|
||||
}
|
||||
|
@ -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++) ;
|
||||
|
Loading…
Reference in New Issue
Block a user