forked from Upstream/CommandPanels
Move shaded dependencies
This commit is contained in:
parent
1cf7d0a4e0
commit
b47857cb14
4
pom.xml
4
pom.xml
@ -45,11 +45,11 @@
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>org.bstats</pattern>
|
||||
<shadedPattern>me.rockyhawk.commandpanels</shadedPattern>
|
||||
<shadedPattern>me.rockyhawk.commandpanels.bstats</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>de.tr7zw.changeme.nbtapi</pattern>
|
||||
<shadedPattern>me.rockyhawk.commandpanels</shadedPattern>
|
||||
<shadedPattern>me.rockyhawk.commandpanels.nbtapi</shadedPattern>
|
||||
</relocation>
|
||||
</relocations>
|
||||
</configuration>
|
||||
|
@ -123,18 +123,6 @@ public class Utils implements Listener {
|
||||
if(panel.getConfig().contains("item." + clickedSlot + section + ".commands")) {
|
||||
List<String> 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<String> 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<String> 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()));
|
||||
|
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user