版本更新至: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

@@ -1,5 +1,6 @@
package me.skymc.taboolib;
import me.skymc.taboolib.other.NumberUtils;
import me.skymc.taboolib.playerdata.DataUtils;
import net.md_5.bungee.api.ChatColor;
import org.bukkit.Bukkit;
@@ -37,11 +38,7 @@ public class TabooLib {
}
public static double getPluginVersion() {
try {
return Double.valueOf(Main.getInst().getDescription().getVersion());
} catch (Exception e) {
return 0D;
}
return NumberUtils.getDouble(Main.getInst().getDescription().getVersion());
}
public static String getVersion() {