This commit is contained in:
rockyhawk64 2024-05-05 16:27:40 +10:00
parent 016d67f7c8
commit b8ee48a384
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
version: 3.20.1.0
version: 3.20.1.1
main: me.rockyhawk.commandpanels.CommandPanels
name: CommandPanels
author: RockyHawk

View File

@ -32,7 +32,7 @@ public class GenUtils implements Listener {
@EventHandler
public void onInventoryClose(InventoryCloseEvent e) {
Player p = (Player)e.getPlayer();
if (!this.plugin.generateMode.contains(p)) {
if(!p.hasPermission("commandpanel.generate")){
return;
}
if(!ChatColor.stripColor(e.getView().getTitle()).equals("Generate New Panel")){