LiveryPunishments

API reference for LiveryPunishments in @erlcjs/presets.

Provides punishment actions for banned liveries. LiveryPunishments

Signature:

declare class LiveryPunishments

#Example

client.on(ERLCEvents.vehicleAdd, banLiveries(
  ['Staff'],
  LiveryPunishments.warnThenKick(10, true, 'This livery is restricted'),
  [PlayerPermission.Mod, PlayerPermission.Administrator]
))

#Methods

Method

Modifiers

Description

warnThenKick(delay, warning, message)

static

Warns a player and kicks them if they don't change their livery within the specified delay.