mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-12-25 10:17:44 +01:00
Move animation loaded successfully message to debug handler.
This commit is contained in:
parent
dc698223b6
commit
92475a6c43
@ -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();
|
||||
|
@ -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 + ".");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user