版本更新至:4.03

新增:TabooLib 离线版
新增:阻止在线版在无互联网且无依赖库的服务器上启动
This commit is contained in:
坏黑
2018-05-19 11:46:55 +08:00
parent 4aabd95c59
commit 2131be3079
11 changed files with 235 additions and 143 deletions

View File

@@ -52,8 +52,8 @@ public class TDependency {
}
private static boolean downloadMaven(String url, String groupId, String artifactId, String version, File target, String dl) {
if (Main.getInst().getConfig().getBoolean("OFFLINE-MODE")) {
TLocale.Logger.warn("DEPENDENCY.OFFLINE-DEPENDENCY-WARN");
if (Main.isOfflineVersion()) {
TLocale.Logger.warn("DEPENDENCY.DOWNLOAD-OFFLINE");
return false;
}
AtomicBoolean failed = new AtomicBoolean(false);