barely used anyway

This commit is contained in:
NEZNAMY committed 2020-08-31 22:09:00 +02:00
1 parent e64a6ead90
commit fb6f61badf
1 file changed
-11
@@ -2,10 +2,6 @@ package me.neznamy.tab.shared;
import java.util.List;
import me.neznamy.tab.shared.placeholders.Placeholder;
import me.neznamy.tab.shared.placeholders.Placeholders;
import me.neznamy.tab.shared.placeholders.ServerConstant;
/**
* A class representing an animation from animations.yml
*/
@@ -19,13 +15,6 @@ public class Animation {
this.name = name;
this.interval = Shared.errorManager.fixAnimationInterval(name, interval);
this.messages = Shared.errorManager.fixAnimationFrames(name, list).toArray(new String[0]);
for (int i=0; i<messages.length; i++) {
for (Placeholder c : Placeholders.getAllPlaceholders()) {
if (c instanceof ServerConstant && messages[i].contains(c.getIdentifier())) {
messages[i] = messages[i].replace(c.getIdentifier(), ((ServerConstant)c).get());
}
}
}
}
public String[] getAllMessages() {
return messages;