Table of Contents

Class PlayerKitChanged

Namespace
Uncreated.Warfare.Events.Models.Kits
Assembly
Uncreated.Warfare.dll

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

Class

Kit

The kit the player changed to, or null if the kit was dequipped.

public required Kit? Kit { get; init; }

Property Value

Kit

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

uint

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

string

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

bool

Methods

GetActionLogEntry(IServiceProvider, ref ActionLogEntry[]?)

public ActionLogEntry GetActionLogEntry(IServiceProvider serviceProvider, ref ActionLogEntry[]? multipleEntries)

Parameters

serviceProvider IServiceProvider
multipleEntries ActionLogEntry[]

Returns

ActionLogEntry