1
mirror of https://github.com/CarmJos/MineSQL.git synced 2024-09-19 20:25:45 +00:00

fix(update): 修复更新检测配置读取错误的问题

This commit is contained in:
Carm Jos 2023-01-16 22:34:25 +08:00
parent 6fc169ca30
commit f314ec4351
4 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ public class MineSQLBukkit extends EasyPlugin implements MineSQLPlatform {
); );
} }
if (getConfiguration().PROPERTIES.ENABLE.getNotNull()) { if (getConfiguration().UPDATE_CHECKER.getNotNull()) {
log("开始检查更新,可能需要一小段时间..."); log("开始检查更新,可能需要一小段时间...");
log(" 如不希望检查更新,可在配置文件中关闭。"); log(" 如不希望检查更新,可在配置文件中关闭。");
getScheduler().runAsync(() -> this.core.checkUpdate(getDescription().getVersion())); getScheduler().runAsync(() -> this.core.checkUpdate(getDescription().getVersion()));

View File

@ -52,7 +52,7 @@ public class MineSQLBungee extends Plugin implements MineSQLPlatform {
); );
} }
if (getConfiguration().PROPERTIES.ENABLE.getNotNull()) { if (getConfiguration().UPDATE_CHECKER.getNotNull()) {
getLogger().info("开始检查更新,可能需要一小段时间..."); getLogger().info("开始检查更新,可能需要一小段时间...");
getLogger().info(" 如不希望检查更新,可在配置文件中关闭。"); getLogger().info(" 如不希望检查更新,可在配置文件中关闭。");
ProxyServer.getInstance().getScheduler().runAsync( ProxyServer.getInstance().getScheduler().runAsync(

View File

@ -74,7 +74,7 @@ public class MineSQLSponge implements MineSQLPlatform {
); );
} }
if (getConfiguration().PROPERTIES.ENABLE.getNotNull()) { if (getConfiguration().UPDATE_CHECKER.getNotNull()) {
getLogger().info("开始检查更新,可能需要一小段时间..."); getLogger().info("开始检查更新,可能需要一小段时间...");
getLogger().info(" 如不希望检查更新,可在配置文件中关闭。"); getLogger().info(" 如不希望检查更新,可在配置文件中关闭。");
Sponge.asyncScheduler().executor(pluginContainer) Sponge.asyncScheduler().executor(pluginContainer)

View File

@ -78,7 +78,7 @@ public class MineSQLVelocity implements MineSQLPlatform {
); );
} }
if (getConfiguration().PROPERTIES.ENABLE.getNotNull()) { if (getConfiguration().UPDATE_CHECKER.getNotNull()) {
getLogger().info("开始检查更新,可能需要一小段时间..."); getLogger().info("开始检查更新,可能需要一小段时间...");
getLogger().info(" 如不希望检查更新,可在配置文件中关闭。"); getLogger().info(" 如不希望检查更新,可在配置文件中关闭。");
server.getScheduler().buildTask(this, () -> this.core.checkUpdate(getVersion())).schedule(); server.getScheduler().buildTask(this, () -> this.core.checkUpdate(getVersion())).schedule();