public static class TS3Query.FloodRate extends Object
If the query's hostname / IP has not been added to the server's query_ip_whitelist.txt,
you need to use DEFAULT to prevent the query from being flood-banned.
Calling custom(int) allows you to use a custom command delay if neither
UNLIMITED nor DEFAULT fit your needs.
| Modifier and Type | Field and Description |
|---|---|
static TS3Query.FloodRate |
DEFAULT
Default delay of 350 milliseconds between commands for queries that are not whitelisted.
|
static TS3Query.FloodRate |
UNLIMITED
No delay between commands.
|
| Modifier and Type | Method and Description |
|---|---|
static TS3Query.FloodRate |
custom(int milliseconds)
Creates a FloodRate object that represents a custom command delay.
|
int |
getMs() |
public static final TS3Query.FloodRate DEFAULT
public static final TS3Query.FloodRate UNLIMITED
public static TS3Query.FloodRate custom(int milliseconds)
milliseconds - the delay between sending commands in millisecondsFloodRate object representing a custom delaypublic int getMs()
Released under the MIT license.