Staff++
Search…
Fixed Ban Reason
You can configure custom ban reasons. This will enforce the staff members to use your reasons.
The entire reasons section is optional and not present in the default config

Configuration

1
ban-module:
2
enabled: true
3
permban-template: default
4
tempban-template: default
5
reasons:
6
- name: GRIEFING
7
reason: No griefing allowed on this server
8
- name: BULLYING
9
reason: bullying will not be tolerated
10
template: bullying
11
- name: CURSING
12
reason: Consistent cursing. Temporarily banned.
13
template: cursing
14
ban-type: TEMP_BAN
Copied!
In the above config we have defined 3 ban reasons. GRIEFING, BULLYING and CURSING. Every reason configuration must have at least a name and a reason . Optionally you can also define a template . When you define a template you overwrite any other configured template. However staff members can still provide a template in their command.
By default ban reasons are applicable to both permanent and temporary ban. You can however define another optional configuration optionban-type . The ban type can be configured with TEMP_BAN or PERM_BAN. When the type is configured, this ban reason will only apply for these types of bans. If no ban reasons are configured, the staff members can provide a custom reason. As soon as at least one ban reason is configured they are obligated to use ban reasons and can no longer fill in a custom message
Last modified 8mo ago
Copy link