-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add readme. set default value on error for override limit to global l…
…imit
- Loading branch information
Showing
2 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Altimeter | ||
|
||
### [Discord](https://discord.gg/eeZbM9umBy) | ||
|
||
Sponge API 7.3.x Plugin that limits the number of accounts that can connect from an IP address | ||
|
||
##The gist | ||
A list exists per IP, each list can hold up to X accounts and each account will be removed from the queue until the TTL expires. | ||
If the list fills for that IP, no more accounts can be logged in from that IP. | ||
|
||
## Definitions | ||
* TTL: `Time to live` | ||
|
||
## Commands | ||
* `/altimeter`: lists sub commands | ||
* `/altimeter clear [all|x.x.x.x]`: clear the all account list, or the account list associated with a given IP address (v4/v6) | ||
* `/altimeter override x.x.x.x <limit>`: set account limit for `x.x.x.x` to `limit` | ||
|
||
## Permissions | ||
* `altimeter.override` | ||
* `altimeter.clear.ip` | ||
* `altimeter.clear.all` | ||
|
||
## Configuration | ||
``` | ||
altimeter { | ||
# How many accounts from one IP can log in. | ||
accountLimit=5 | ||
# How often accounts should be checked and cleared from IP lists. | ||
checkInterval { | ||
# DAYS, HOURS, MINUTES, or SECONDS | ||
unit=MINUTES | ||
value=5 | ||
} | ||
# Override account limit for specific IPs | ||
limitOverrides=[ | ||
{ | ||
ip="127.0.0.1" | ||
limit=5 | ||
} | ||
] | ||
# How long after an account is added to the queue is it removed. | ||
ttl { | ||
# DAYS, HOURS, MINUTES, or SECONDS | ||
unit=DAYS | ||
value=30 | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters