Search Results for

    Show / Hide Table of Contents

    Class PlayerMoveEvent

    Dispatched whenever an OpenPlayer moves

    Inheritance
    System.Object
    Event
    PlayerEvent
    PlayerMoveEvent
    Inherited Members
    PlayerEvent.Player
    Event.IsCancelled
    Event.SetCancelled(Boolean)
    Namespace: OpenAPI.Events.Player
    Assembly: OpenAPI.dll
    Syntax
    public class PlayerMoveEvent : PlayerEvent

    Constructors

    | Improve this Doc View Source

    PlayerMoveEvent(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 Source

    From

    The players old location

    Declaration
    public PlayerLocation From { get; }
    Property Value
    Type Description
    PlayerLocation
    | Improve this Doc View Source

    IsTeleport

    Whether or not the player teleported

    Declaration
    public bool IsTeleport { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    To

    The players new location

    Declaration
    public PlayerLocation To { get; }
    Property Value
    Type Description
    PlayerLocation
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX