mirror of
https://github.com/CarmJos/MineSQL.git
synced 2024-09-19 20:25:45 +00:00
fix(update): 修复更新检测配置读取错误的问题
This commit is contained in:
parent
6fc169ca30
commit
f314ec4351
@ -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()));
|
||||||
|
@ -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(
|
||||||
|
@ -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)
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user