Table of Contents

Class RoomChangedEventArgs

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

Contains the information when a player changes rooms.

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

Constructors

RoomChangedEventArgs(ReferenceHub, RoomIdentifier, RoomIdentifier)

Initializes a new instance of the RoomChangedEventArgs class.

public RoomChangedEventArgs(ReferenceHub player, RoomIdentifier oldRoom, RoomIdentifier newRoom)

Parameters

player ReferenceHub

The player whose room has changed.

oldRoom RoomIdentifier

The room identifier before the change (Can be null on round start).

newRoom RoomIdentifier

The room identifier after the change.

Properties

NewRoom

Gets the new room the player entered.

public Room NewRoom { get; }

Property Value

Room

OldRoom

Gets the previous room the player was in.

public Room OldRoom { get; }

Property Value

Room

Player

Gets the Player triggering the event.

public Player Player { get; }

Property Value

Player