Table of Contents

Class AddingUnitNameEventArgs

Namespace
Exiled.Events.EventArgs.Server
Assembly
Exiled.Events.dll

Contains all information before adding a new unit name.

public class AddingUnitNameEventArgs : IDeniableEvent, IExiledEvent
Inheritance
AddingUnitNameEventArgs
Implements
Inherited Members
Extension Methods

Constructors

AddingUnitNameEventArgs(UnitNamingRule, bool)

Initializes a new instance of the AddingUnitNameEventArgs class.

public AddingUnitNameEventArgs(UnitNamingRule unitNamingRule, bool isAllowed = true)

Parameters

unitNamingRule UnitNamingRule

The generated unit name.

isAllowed bool

The value indicating whether the unit name can be added.

Properties

IsAllowed

Gets or sets a value indicating whether the unit name can be added.

public bool IsAllowed { get; set; }

Property Value

bool

UnitNamingRule

Gets the generated UnitNamingRule.

public UnitNamingRule UnitNamingRule { get; }

Property Value

UnitNamingRule