diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 2c8420d0bc..7d1ce47110 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -119,6 +119,8 @@ public final class CraftServer implements Server { configuration.getString("settings.permissions-file", "permissions.yml"); + configuration.getInt("settings.ping-packet-limit", 100); + if (configuration.getNode("aliases") == null) { List icanhasbukkit = new ArrayList(); icanhasbukkit.add("version"); @@ -317,6 +319,10 @@ public final class CraftServer implements Server { return this.configuration.getString("settings.update-folder", "update"); } + public int getPingPacketLimit() { + return this.configuration.getInt("settings.ping-packet-limit", 100); + } + public PluginManager getPluginManager() { return pluginManager; }