diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/Bukkit.java | 4 | ||||
-rw-r--r-- | src/main/java/org/bukkit/Server.java | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java index 601ebdc2..86547007 100644 --- a/src/main/java/org/bukkit/Bukkit.java +++ b/src/main/java/org/bukkit/Bukkit.java @@ -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(); } diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java index 5f79700e..44f44af4 100644 --- a/src/main/java/org/bukkit/Server.java +++ b/src/main/java/org/bukkit/Server.java @@ -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(); @@ -200,6 +200,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 /> * <b>Example Usage:</b> |