mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
Added configurable Connection Throttle. Addresses BUKKIT-1274
This commit is contained in:
parent
557c4f0a75
commit
ec9fdd4811
2 changed files with 12 additions and 1 deletions
|
@ -310,6 +310,10 @@ public final class Bukkit {
|
|||
return server.getUpdateFolderFile();
|
||||
}
|
||||
|
||||
public static long getConnectionThrottle() {
|
||||
return server.getConnectionThrottle();
|
||||
}
|
||||
|
||||
public static int getTicksPerAnimalSpawns() {
|
||||
return server.getTicksPerAnimalSpawns();
|
||||
}
|
||||
|
|
|
@ -126,7 +126,7 @@ public interface Server extends PluginMessageRecipient {
|
|||
|
||||
/**
|
||||
* Get generate-structures setting
|
||||
*
|
||||
*
|
||||
* @return true if structure generation is enabled, false if not
|
||||
*/
|
||||
public boolean getGenerateStructures();
|
||||
|
@ -199,6 +199,13 @@ public interface Server extends PluginMessageRecipient {
|
|||
*/
|
||||
public File getUpdateFolderFile();
|
||||
|
||||
/**
|
||||
* Gets the value of the connection throttle setting
|
||||
*
|
||||
* @return the value of the connection throttle setting
|
||||
*/
|
||||
public long getConnectionThrottle();
|
||||
|
||||
/**
|
||||
* Gets default ticks per animal spawns value
|
||||
* <p />
|
||||
|
|
Loading…
Add table
Reference in a new issue