• Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Contributors
pesek.
Supported Skript Version
  1. 2.8
Supported Minecraft Versions
  1. 1.16
  2. 1.17
  3. 1.18
  4. 1.19
  5. 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:
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:
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:
Code:
on litebans entry removed:
  send event-entry to console
Author
erenkara
Downloads
114
Views
375
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from erenkara