diff --git a/hamster-ball-server/src/main/java/cn/hamster3/mc/plugin/ball/server/Bootstrap.java b/hamster-ball-server/src/main/java/cn/hamster3/mc/plugin/ball/server/Bootstrap.java index 22f47a8..e1b8118 100644 --- a/hamster-ball-server/src/main/java/cn/hamster3/mc/plugin/ball/server/Bootstrap.java +++ b/hamster-ball-server/src/main/java/cn/hamster3/mc/plugin/ball/server/Bootstrap.java @@ -22,7 +22,7 @@ public class Bootstrap { public static void main(String[] args) throws IOException { if (initDefaultFile()) { - System.out.println("请重新启动该程序."); + LOGGER.info("请重新启动该程序."); return; } ServerConfig.init(); @@ -56,7 +56,7 @@ public class Bootstrap { throw new IOException("log4j2.xml 文件损坏!"); } Files.copy(stream, log4jFile.toPath(), StandardCopyOption.REPLACE_EXISTING); - System.out.println("已生成默认 log4j2.xml 文件!"); + LOGGER.info("已生成默认 log4j2.xml 文件!"); saved = true; } @@ -67,7 +67,7 @@ public class Bootstrap { throw new IOException("config.yml 文件损坏!"); } Files.copy(stream, configFile.toPath(), StandardCopyOption.REPLACE_EXISTING); - System.out.println("已生成默认 config.yml 文件!"); + LOGGER.info("已生成默认 config.yml 文件!"); saved = true; } return saved;