Move animation loaded successfully message to debug handler.

This commit is contained in:
filoghost 2014-12-21 15:34:15 +01:00
parent dc698223b6
commit 92475a6c43
2 changed files with 9 additions and 2 deletions

View File

@ -8,6 +8,7 @@ import org.bukkit.plugin.Plugin;
import com.gmail.filoghost.holographicdisplays.HolographicDisplays;
import com.gmail.filoghost.holographicdisplays.disk.StringConverter;
import com.gmail.filoghost.holographicdisplays.util.DebugHandler;
import com.gmail.filoghost.holographicdisplays.util.FileUtils;
import com.gmail.filoghost.holographicdisplays.util.Utils;
@ -66,7 +67,7 @@ public class AnimationsRegister {
}
animations.put(file.getName(), new Placeholder(HolographicDisplays.getInstance(), file.getName(), speed, new CyclicPlaceholderReplacer(lines.toArray(new String[lines.size()]))));
plugin.getLogger().info("Loaded animation '" + file.getName() + "', speed " + speed + ".");
DebugHandler.handleAnimationLoadSuccess(file.getName(), speed);
} catch (Exception e) {
e.printStackTrace();

View File

@ -12,6 +12,12 @@ public class DebugHandler {
}
}
public static void handleAnimationLoadSuccess(String name, double speed) {
if (Configuration.debug) {
HolographicDisplays.getInstance().getLogger().info("[Debug] Successfully loaded animation '" + name + "', speed = " + speed + ".");
}
}
}