forked from Upstream/CommandPanels
Merge pull request #314 from TinyTank800/1.8.8_TO_1.12.2
CRITICAL HOT FIX 1.8-1.12
This commit is contained in:
commit
016d67f7c8
@ -32,6 +32,9 @@ public class GenUtils implements Listener {
|
|||||||
@EventHandler
|
@EventHandler
|
||||||
public void onInventoryClose(InventoryCloseEvent e) {
|
public void onInventoryClose(InventoryCloseEvent e) {
|
||||||
Player p = (Player)e.getPlayer();
|
Player p = (Player)e.getPlayer();
|
||||||
|
if (!this.plugin.generateMode.contains(p)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(!ChatColor.stripColor(e.getView().getTitle()).equals("Generate New Panel")){
|
if(!ChatColor.stripColor(e.getView().getTitle()).equals("Generate New Panel")){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -110,4 +113,4 @@ public class GenUtils implements Listener {
|
|||||||
}
|
}
|
||||||
plugin.reloadPanelFiles();
|
plugin.reloadPanelFiles();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user