mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Implemented configurable ping packet limit.
This commit is contained in:
1 parent
096672b3c1
commit
392e2a4272
2 files changed
+25
-13
No files matched your search
@@ -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<String> icanhasbukkit = new ArrayList<String>();
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user