Banning
Gets called when the player is being banned.
Start a script section
!-- OnEvent Banning
-- require @evPlayer $evPlayerId @evIssuer $evReason $evDuration $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerBanningEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is being banned. |
$evPlayerId | text value | Gets the ID of the player who is being banned. |
@evIssuer | player value | Gets the player who issued the ban. |
$evReason | text value | Gets or sets the reason of the ban. |
$evDuration | number value | Gets or sets the duration of the ban. |
$evIsAllowed | bool value | Whether the event is allowed to run. |