mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
Added configurable Connection Throttle. Addresses BUKKIT-1274
By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
parent
51b68f06be
commit
12fff3a0e9
2 changed files with 5 additions and 0 deletions
|
@ -424,6 +424,10 @@ public final class CraftServer implements Server {
|
||||||
return this.configuration.getInt("settings.ping-packet-limit", 100);
|
return this.configuration.getInt("settings.ping-packet-limit", 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long getConnectionThrottle() {
|
||||||
|
return this.configuration.getInt("settings.connection-throttle");
|
||||||
|
}
|
||||||
|
|
||||||
public int getTicksPerAnimalSpawns() {
|
public int getTicksPerAnimalSpawns() {
|
||||||
return this.configuration.getInt("ticks-per.animal-spawns");
|
return this.configuration.getInt("ticks-per.animal-spawns");
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,7 @@ settings:
|
||||||
ping-packet-limit: 100
|
ping-packet-limit: 100
|
||||||
use-exact-login-location: false
|
use-exact-login-location: false
|
||||||
plugin-profiling: false
|
plugin-profiling: false
|
||||||
|
connection-throttle: 4000
|
||||||
ticks-per:
|
ticks-per:
|
||||||
animal-spawns: 400
|
animal-spawns: 400
|
||||||
monster-spawns: 1
|
monster-spawns: 1
|
||||||
|
|
Loading…
Reference in a new issue