- Contributors
- pesek.
- Supported Skript Version
- 2.8
- Supported Minecraft Versions
- 1.16
- 1.17
- 1.18
- 1.19
- 1.20
A simple script for listening to events of LiteBans.
Made and tested with:
- skript-reflect v2.4
- Hippo v1.1.1-PRERELEASE-5
- LiteBans v2.12.4
Installation:
Drag and drop, no configuration needed. It is not recommended to rename the script. It was named that way so it loads before other scripts when the server is starting.
Click here for Discord support.
Syntaxes:
Called after a broadcast or notification is sent to all players who have permission to see it.
Syntax: on [litebans] broadcast sent
Event values:
event-type - the type of broadcast, if not null, "litebans.notify.[type]" permission is required to see the broadcast.
event-message - the broadcasted message.
Example:
Syntax: on [litebans] broadcast sent
Event values:
event-type - the type of broadcast, if not null, "litebans.notify.[type]" permission is required to see the broadcast.
event-message - the broadcasted message.
Example:
Code:
on litebans broadcast sent:
send event-message to console
Called after an entry (ban, mute, warning, kick) is added to the database.
Syntax: on [litebans] entry added
Event values:
event-entry - the raw Entry type, you must get the fields you want using reflect. See this for more info.
Example:
Syntax: on [litebans] entry added
Event values:
event-entry - the raw Entry type, you must get the fields you want using reflect. See this for more info.
Example:
Code:
on litebans entry added:
send event-entry to console
Called after an entry (ban, mute, warning, kick) is removed from the database.
Syntax: on [litebans] entry removed
Event values:
event-entry - the raw Entry type, you must get the fields you want using reflect. See this for more info.
Example:
Syntax: on [litebans] entry removed
Event values:
event-entry - the raw Entry type, you must get the fields you want using reflect. See this for more info.
Example:
Code:
on litebans entry removed:
send event-entry to console