PVPAsWantedManager.java 文件源码

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

项目:PVPAsWantedManager 作者:
static public Boolean isPlayerNovice(String player){
    YamlConfiguration PlayerData = onLoadData(player);
    if(PlayerData ==null) return false;
    int protectionValue = Integer.valueOf(onLoadData(player).getString("cumulativeOnlineTime"));
    int noviceProtectionTimes = Integer.valueOf(Config.getConfig("playerNoviceProtection.times").replace("min", "").replace("m",""));
    if(noviceProtectionTimes > protectionValue){
        if(InventoryManager.PVPList.contains(player))return false;
        return true;
    }
    return false;

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号