13
0
geforkt von Mirrors/Paper

Implemented configurable ping packet limit.

By: EvilSeph <evilseph@gmail.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2011-09-16 20:57:43 -04:00
Ursprung 753e928598
Commit d18f001535

Datei anzeigen

@ -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;
}