Class PlayerMoveEvent
Dispatched whenever an OpenPlayer moves
Namespace: OpenAPI.Events.Player
Assembly: OpenAPI.dll
Syntax
public class PlayerMoveEvent : PlayerEvent
Constructors
| Improve this Doc View SourcePlayerMoveEvent(OpenPlayer, PlayerLocation, PlayerLocation, Boolean)
Declaration
public PlayerMoveEvent(OpenPlayer player, PlayerLocation from, PlayerLocation to, bool teleport)
Parameters
| Type | Name | Description |
|---|---|---|
| OpenPlayer | player | |
| PlayerLocation | from | |
| PlayerLocation | to | |
| System.Boolean | teleport |
Properties
| Improve this Doc View SourceFrom
The players old location
Declaration
public PlayerLocation From { get; }
Property Value
| Type | Description |
|---|---|
| PlayerLocation |
IsTeleport
Whether or not the player teleported
Declaration
public bool IsTeleport { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
To
The players new location
Declaration
public PlayerLocation To { get; }
Property Value
| Type | Description |
|---|---|
| PlayerLocation |