Table of Contents

Class ChangingNicknameEventArgs

Namespace
Exiled.Events.EventArgs.Player
Assembly
Exiled.Events.dll

Contains all information before changing a player's in-game nickname.

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

Constructors

ChangingNicknameEventArgs(Player, string)

Initializes a new instance of the ChangingNicknameEventArgs class.

public ChangingNicknameEventArgs(Player player, string newName)

Parameters

player Player

The Player who's name is being changed.

newName string

The new name to be used.

Properties

IsAllowed

Gets or sets a value indicating whether the event should be allowed.

public bool IsAllowed { get; set; }

Property Value

bool

NewName

Gets or sets the Player's new name.

public string NewName { get; set; }

Property Value

string

OldName

Gets the Player's old name.

public string OldName { get; }

Property Value

string

Player

Gets the Player who's name is being changed.

public Player Player { get; }

Property Value

Player