You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-3
Original file line number
Diff line number
Diff line change
@@ -27,11 +27,23 @@ Default configuration:
27
27
28
28
```json
29
29
{
30
+
{
30
31
"Commands": {
31
32
"Use": "code"
32
33
},
33
34
"Options": {
34
-
"displayPermissionErrors": true
35
+
"displayPermissionErrors": true,
36
+
"Spam Prevention": {
37
+
"Attempts": 5,
38
+
"Enable": true,
39
+
"Exponential Lock Out Time": true,
40
+
"Exponential Lockout Time": true,
41
+
"Lock Out Reset Factor": 5.0,
42
+
"Lock Out Time": 5.0,
43
+
"Lockout Reset Factor": 5.0,
44
+
"Lockout Time": 5.0,
45
+
"Window Time": 30.0
46
+
}
35
47
}
36
48
}
37
49
```
@@ -40,8 +52,15 @@ Default configuration:
40
52
41
53
- `Commands` - Change the commands this plugin uses.
42
54
- `Use` - Used to set the player's code.
43
-
-`displayPermissionErrors` - If set to false, players won't be notified if
44
-
they don't have the right permissions to use this plugin.
55
+
- `Options`
56
+
- `displayPermissionErrors` - If set to false, players won't be notified if they don't have the right permissions to use this plugin.
57
+
- `Spam Prevention` - Prevent players from changing their code too often to prevent abuse.
58
+
- `Enable` - Whether spam protection is enabled or not.
59
+
- `Attempts` - The number of code changes the player can make with in `Window Time` before being marked as spamming.
60
+
- `Window Time` - The time frame (in seconds) to count the number of code changes the player has made.
61
+
- `Lock Out Time` - How long (in seconds) a player will be locked out for. This number should be low if using exponential lock out times.
62
+
- `Exponential Lock Out Time` - If true, each time the player is locked out, they will be locked out for double the amount of time they were previously locked out for.
63
+
- `Lock Out Reset Factor` - Determines how long (as a multiples of lock out time) before the player is forgive for all previous lockout offenses (should be greater than 1 - has no effect if not using exponential lock out time).
0 commit comments