Configurable Ping Sample Size

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2014-01-26 21:48:34 +11:00
parent cd82f21617
commit 23c02d0942
2 changed files with 15 additions and 1 deletions

View File

@@ -271,4 +271,11 @@ public class SpigotConfig
{
SpigotConfig.commands.put( "tps", new TicksPerSecondCommand( "tps" ) );
}
public static int playerSample;
private static void playerSample()
{
SpigotConfig.playerSample = SpigotConfig.getInt( "settings.sample-count", 12 );
System.out.println( "Server Ping Player Sample Count: " + SpigotConfig.playerSample );
}
}