Added configurable Connection Throttle. Addresses BUKKIT-1274
By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
parent
244c30af0a
commit
263b512e51
2 changed files with 12 additions and 1 deletions
|
@ -310,6 +310,10 @@ public final class Bukkit {
|
||||||
return server.getUpdateFolderFile();
|
return server.getUpdateFolderFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static long getConnectionThrottle() {
|
||||||
|
return server.getConnectionThrottle();
|
||||||
|
}
|
||||||
|
|
||||||
public static int getTicksPerAnimalSpawns() {
|
public static int getTicksPerAnimalSpawns() {
|
||||||
return server.getTicksPerAnimalSpawns();
|
return server.getTicksPerAnimalSpawns();
|
||||||
}
|
}
|
||||||
|
|
|
@ -199,6 +199,13 @@ public interface Server extends PluginMessageRecipient {
|
||||||
*/
|
*/
|
||||||
public File getUpdateFolderFile();
|
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
|
* Gets default ticks per animal spawns value
|
||||||
* <p />
|
* <p />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue