版本更新至:4.03
新增:TabooLib 离线版 新增:阻止在线版在无互联网且无依赖库的服务器上启动
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user