PlayerManager.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:UltimateTs 作者:
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);
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号