Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
1. 对代码进行调整
2. 修复debug相关功能的问题
  • Loading branch information
stevei5mc committed May 27, 2024
1 parent 9493ec3 commit 7b427a7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/main/java/cn/stevei5mc/NewTipsVariables/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ public void loadConfigRes() {
this.configInPlayer = new Config(this.getDataFolder() + "/player.yml", Config.YAML);
this.worldName = new Config(this.getDataFolder() + "/world_name.yml", Config.YAML);
this.language = new Config(this.getDataFolder() + "/language.yml", Config.YAML);
debug = false; //这个防止出现关闭debug功能reload配置文件后还需要重启服务器的问题
if (config.getBoolean("debug", false)) {//从config.yml中获取debug为true则执行相关内容,如果无法获取则为false
this.deBugMode();
debug = true;
this.getLogger().warning(debugPrefix + "§cdebug模式已开启");
}
if (config.getBoolean("updata.in-config.check")) {//从config.yml中获取updata.in-config.check为true则执行相关内容
ConfigUtils.checkVersion();
Expand All @@ -78,11 +80,6 @@ public void loadVarRes() {
}
}

public void deBugMode() {
debug = true;
this.getLogger().warning(debugPrefix + "§cdebug模式已开启");
}

public void tipsvariables() {
Api.registerVariables("BaseVariables", BaseVariables.class);
LoadSupportPlugins.loadSupportVariables(player);
Expand Down

0 comments on commit 7b427a7

Please sign in to comment.