diff --git a/pom.xml b/pom.xml index 0882a23..5920b65 100644 --- a/pom.xml +++ b/pom.xml @@ -45,11 +45,11 @@ org.bstats - me.rockyhawk.commandpanels + me.rockyhawk.commandpanels.bstats de.tr7zw.changeme.nbtapi - me.rockyhawk.commandpanels + me.rockyhawk.commandpanels.nbtapi diff --git a/src/me/rockyhawk/commandpanels/Utils.java b/src/me/rockyhawk/commandpanels/Utils.java index d136973..21b4ad5 100644 --- a/src/me/rockyhawk/commandpanels/Utils.java +++ b/src/me/rockyhawk/commandpanels/Utils.java @@ -123,18 +123,6 @@ public class Utils implements Listener { if(panel.getConfig().contains("item." + clickedSlot + section + ".commands")) { List commands = panel.getConfig().getStringList("item." + clickedSlot + section + ".commands"); if (!commands.isEmpty()) { - //this will replace a sequence tag command with the commands from the sequence - List commandsAfterSequence = commands; - for (int i = 0; commands.size() - 1 >= i; i++) { - if(commands.get(i).startsWith("sequence=")){ - String locationOfSequence = commands.get(i).split("\\s")[1]; - List commandsSequence = panel.getConfig().getStringList(locationOfSequence); - commandsAfterSequence.remove(i); - commandsAfterSequence.addAll(i,commandsSequence); - } - } - commands = commandsAfterSequence; - for (int i = 0; commands.size() > i; i++) { try { commands.set(i, commands.get(i).replaceAll("%cp-clicked%", e.getCurrentItem().getType().toString())); diff --git a/src/me/rockyhawk/commandpanels/interactives/Commandpanelrefresher.java b/src/me/rockyhawk/commandpanels/interactives/Commandpanelrefresher.java index 6beb5da..ea605e5 100644 --- a/src/me/rockyhawk/commandpanels/interactives/Commandpanelrefresher.java +++ b/src/me/rockyhawk/commandpanels/interactives/Commandpanelrefresher.java @@ -64,7 +64,7 @@ public class Commandpanelrefresher implements Listener { int animatecount = 0; @Override public void run() { - //counter counts to refresh delay (in seconds) then restarts + //counter counts to refresh delay (in ticks) then restarts if(c < refreshDelay){ c+=1; }else{