This commit is contained in:
rockyhawk64 2020-10-19 15:40:32 +11:00
parent b8ed22a094
commit 0201b7b7cb
2 changed files with 8 additions and 1 deletions

View File

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

View File

@ -41,6 +41,13 @@ public class Commandpanelrefresher implements Listener {
ConfigurationSection cf = plugin.openPanels.getOpenPanel(p.getName()); //this is the panel cf section
String panelName = plugin.openPanels.getOpenPanelName(p.getName()); //get panel name
//remove sound-on-open on 1.8 for those who do not read the wiki ;)
if(cf.contains("sound-on-open")){
if(Bukkit.getVersion().contains("1.8")){
cf.set("sound-on-open", null);
}
}
if(cf.contains("panelType")) {
if (cf.getString("panelType").equalsIgnoreCase("temporary")) {
//do not update temporary panels, only default panels