Implement extended PaperServerListPingEvent

This commit is contained in:
Minecrell
2017-10-11 15:56:26 +02:00
parent a7bc7ca33a
commit ac0c06a72f
6 changed files with 247 additions and 80 deletions

View File

@@ -285,7 +285,7 @@ public class SpigotConfig
public static int playerSample;
private static void playerSample()
{
SpigotConfig.playerSample = SpigotConfig.getInt( "settings.sample-count", 12 );
SpigotConfig.playerSample = Math.max( SpigotConfig.getInt( "settings.sample-count", 12 ), 0 ); // Paper - Avoid negative counts
Bukkit.getLogger().log( Level.INFO, "Server Ping Player Sample Count: {0}", playerSample ); // Paper - Use logger
}