From 0201b7b7cb8cd0e534229f5688e82bbc1c24ea80 Mon Sep 17 00:00:00 2001 From: rockyhawk64 Date: Mon, 19 Oct 2020 15:40:32 +1100 Subject: [PATCH] v3.12.5 --- resource/plugin.yml | 2 +- .../commandpanels/interactives/Commandpanelrefresher.java | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/resource/plugin.yml b/resource/plugin.yml index f562f2c..3bf7afc 100644 --- a/resource/plugin.yml +++ b/resource/plugin.yml @@ -1,4 +1,4 @@ -version: 3.12.4 +version: 3.12.5 main: me.rockyhawk.commandpanels.CommandPanels name: CommandPanels author: RockyHawk diff --git a/src/me/rockyhawk/commandpanels/interactives/Commandpanelrefresher.java b/src/me/rockyhawk/commandpanels/interactives/Commandpanelrefresher.java index 4714788..2d14409 100644 --- a/src/me/rockyhawk/commandpanels/interactives/Commandpanelrefresher.java +++ b/src/me/rockyhawk/commandpanels/interactives/Commandpanelrefresher.java @@ -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