SpigotConfig.java 文件源码

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

项目:Uranium 作者:
private static void stats()
{
    disableStatSaving = getBoolean( "stats.disable-saving", false );

    if ( !config.contains( "stats.forced-stats" ) ) {
        config.createSection( "stats.forced-stats" );
    }

    ConfigurationSection section = config.getConfigurationSection( "stats.forced-stats" );
    for ( String name : section.getKeys( true ) )
    {
        if ( section.isInt( name ) )
        {
            forcedStats.put( name, section.getInt( name ) );
        }
    }

    if ( disableStatSaving && section.getInt( "achievement.openInventory", 0 ) < 1 )
    {
        Bukkit.getLogger().warning( "*** WARNING *** stats.disable-saving is true but stats.forced-stats.achievement.openInventory" +
                " isn't set to 1. Disabling stat saving without forcing the achievement may cause it to get stuck on the player's " +
                "screen." );
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号