public static void unlink(Player p){
String uuid = p.getUniqueId().toString();
UtilsStorage storageType = Utils.getStorageType();
removeRanks(p);
if(storageType == UtilsStorage.FILE){
if(isLinked(p)){
ConfigurationSection cs = UltimateTs.linkedPlayers.getConfigurationSection("linked");
cs.set(uuid, 0);
UltimateTs.linkedPlayers.save();
}
}else if(storageType == UtilsStorage.SQL){
if(UltimateTs.main().sql.isUUIDLinked(uuid)){
UltimateTs.main().sql.unlink(uuid);
}
}
}
PlayerManager.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:UltimateTs
作者:
评论列表
文章目录