Skip to main content

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

VariableTypeDescription
@evPlayerplayer valueGets the player who is being banned.
$evPlayerIdtext valueGets the ID of the player who is being banned.
@evIssuerplayer valueGets the player who issued the ban.
$evReasontext valueGets or sets the reason of the ban.
$evDurationnumber valueGets or sets the duration of the ban.
$evIsAllowedbool valueWhether the event is allowed to run.