Staff++
Search…
Actions (punishments)
We can define actions inside the warnings-module. Actions will be executed whenever a warning is issued. Every action must follow the Staff++ command format
Besides the general command, a rollback-command can be specified. A rollback command follows the Staff++ command format. The rollback command gets executed whenever a warning is deleted or has been successfully appealed.

Placeholders:

placeholder
description
%target%
The name of the player that was warned
%issuer%
The name of the staff member that created the warning
%severity%
The severity of the warning
%score%
The score of the warning
%reason%
The reason of the warning

Executors:

executor value
description
target
The player that has been warned
issuer
The staff member that issued the warning

Targets:

target value
description
target
The player that has been warned
issuer
The staff member that issued the warning

Filters

filter
possible values
description
type
comma separated list of the any type
Can specify if a command should be executed only when the report is of a certain type
hasculprit
[true/false]
Can specify if a command should be executed only when it's a report that is targeting a player
Example configuration:
1
warnings-module:
2
actions:
3
- command: 'eco take %target% 2000'
4
filters: 'severity=MINOR,MAJOR'
5
rollback-command:
6
command: 'eco give %target% 2000'
7
- command: 'eco take %target% 5000'
8
filters: 'severity=CRITICAL'
9
rollback-command:
10
command: 'eco give %target% 5000'
11
- command: 'freeze enabled %target%'
12
filters: 'severity=CRITICAL'
13
rollback-command:
14
command: 'freeze disabled %target%'
Copied!
In the above example configuration the following will happen:
If a MINOR or MAJOR warning is issued. - The target will be deducted $2000 from his balance. If a CRITICAL warning is issued. - The target will be deducted $5000 from his balance. - The target will get frozen if he is online, or the next time he comes online. If the warning gets rollbacked the target will get automatically reimbursed.
It's important to not that actions get linked to the warning the moment the warning is created. Changing the action configuration will not impact existing warnings.
Last modified 4mo ago