版本更新至 4.02
调整:部分语言文件地址拼写错误(FAIL写成FALL,我这鸟语算是白学了) 调整:配置文件 tlib.yml 不再监听文件更改(这块不是我写的,监听更改会出死循环不知道为啥) 调整:通过 MysqlUtils 创建的数据库连接会返回已存在的引用,不再重复创建 调整:TagManager 工具现在会根据玩家的前缀进行自动排序(尚未测试) 修复:ListenerPluginDisable 类中语言提示无法更改的问题 新增:几个奇葩数据库工具,我也不知道有啥用写着玩
This commit is contained in:
@@ -8,8 +8,24 @@ import org.bukkit.plugin.Plugin;
|
||||
import java.util.Arrays;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author sky
|
||||
*/
|
||||
public class TabooLib {
|
||||
|
||||
private static boolean spigot = false;
|
||||
|
||||
static {
|
||||
try {
|
||||
spigot = Bukkit.getConsoleSender() != null;
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isSpigot() {
|
||||
return spigot;
|
||||
}
|
||||
|
||||
public static boolean isDebug() {
|
||||
return Main.getInst().getConfig().getBoolean("DEBUG");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user