feat: 兼容1.21
This commit is contained in:
@@ -19,7 +19,6 @@ import java.io.InputStreamReader;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.StandardCopyOption;
|
||||
import java.util.logging.Level;
|
||||
|
||||
public class HamsterCorePlugin extends Plugin {
|
||||
@Getter
|
||||
@@ -51,7 +50,7 @@ public class HamsterCorePlugin extends Plugin {
|
||||
CoreBungeeAPI.init(configFile);
|
||||
simpleLogger.info("已初始化 CoreAPI");
|
||||
} catch (Exception e) {
|
||||
simpleLogger.log(Level.WARNING, "初始化 CoreAPI 出错", e);
|
||||
simpleLogger.error(e, "初始化 CoreAPI 出错");
|
||||
}
|
||||
long time = System.currentTimeMillis() - start;
|
||||
simpleLogger.info("仓鼠核心初始化完成,总计耗时 " + time + " ms");
|
||||
|
Reference in New Issue
Block a user