Class PlayerKitChanged
Handles when a player's kit is changed, re-equipped, or dequiped.
[EventModel(EventSynchronizationContext.Pure)]
public class PlayerKitChanged : PlayerEvent, IPlayerEvent, IActionLoggableEvent
- Inheritance
-
PlayerKitChanged
- Implements
- Inherited Members
Properties
Class
The class of the kit that was changed to.
public required Class Class { get; init; }
Property Value
Kit
The kit the player changed to, or null if the kit was dequipped.
public required Kit? Kit { get; init; }
Property Value
KitId
The ID of the kit the player changed to, or 0 if the kit was dequipped.
public required uint KitId { get; init; }
Property Value
KitName
The name of the kit the player changed to, or null if the kit was dequipped.
public required string? KitName { get; init; }
Property Value
WasRequested
If the kit was requested instead of being given using /kit give or similar unofficial methods.
public required bool WasRequested { get; init; }
Property Value
Methods
GetActionLogEntry(IServiceProvider, ref ActionLogEntry[]?)
public ActionLogEntry GetActionLogEntry(IServiceProvider serviceProvider, ref ActionLogEntry[]? multipleEntries)
Parameters
serviceProviderIServiceProvidermultipleEntriesActionLogEntry[]