Table of Contents

Class ZoneChangedEventArgs

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

Contains the information when a player changes zones.

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

Constructors

ZoneChangedEventArgs(Player, Room, Room, ZoneType, ZoneType)

Initializes a new instance of the ZoneChangedEventArgs class.

public ZoneChangedEventArgs(Player player, Room oldRoom, Room newRoom, ZoneType oldZone, ZoneType newZone)

Parameters

player Player

The player whose zone has changed.

oldRoom Room

The previous room the player was in.

newRoom Room

The new room the player entered.

oldZone ZoneType

The previous zone the player was in.

newZone ZoneType

The new zone the player entered.

Properties

NewRoom

Gets the new room the player entered.

public Room NewRoom { get; }

Property Value

Room

NewZone

Gets the new zone the player entered.

public ZoneType NewZone { get; }

Property Value

ZoneType

OldRoom

Gets the previous room the player was in.

public Room OldRoom { get; }

Property Value

Room

OldZone

Gets the previous zone the player was in.

public ZoneType OldZone { get; }

Property Value

ZoneType

Player

Gets the Player triggering the event.

public Player Player { get; }

Property Value

Player