Configurable UserCache cap

By: drXor <mcyoungsota@gmail.com>
This commit is contained in:
CraftBukkit/Spigot
2014-04-25 18:17:30 -04:00
parent 05f3042755
commit 542b7a7eb1
2 changed files with 15 additions and 0 deletions

View File

@@ -314,4 +314,10 @@ public class SpigotConfig
SpigotConfig.replaceCommands = new HashSet<String>( (List<String>) SpigotConfig.getList( "commands.replace-commands",
Arrays.asList( "setblock", "summon", "testforblock", "tellraw" ) ) );
}
public static int userCacheCap;
private static void userCacheCap()
{
SpigotConfig.userCacheCap = SpigotConfig.getInt( "settings.user-cache-size", 1000 );
}
}