Enum PlayerWarpTeleportEvent.Cause

java.lang.Object
java.lang.Enum<PlayerWarpTeleportEvent.Cause>
com.olziedev.playerwarps.api.events.warp.PlayerWarpTeleportEvent.Cause
All Implemented Interfaces:
Serializable, Comparable<PlayerWarpTeleportEvent.Cause>, java.lang.constant.Constable
Enclosing class:
PlayerWarpTeleportEvent

public static enum PlayerWarpTeleportEvent.Cause extends Enum<PlayerWarpTeleportEvent.Cause>
List of all possible ways a player can warp.
  • Enum Constant Details

    • TELEPORT_COMMAND

      public static final PlayerWarpTeleportEvent.Cause TELEPORT_COMMAND
      This constant is when a player teleports to the warp using the teleport command.
    • RANDOM_TELEPORT_COMMAND

      public static final PlayerWarpTeleportEvent.Cause RANDOM_TELEPORT_COMMAND
      This constant is when a player teleports to the warp using the random teleport command.
    • TELEPORT_SIGN

      public static final PlayerWarpTeleportEvent.Cause TELEPORT_SIGN
      This constant is when a player teleports to the warp using the teleport sign.
    • VISITED_WARPS_MENU

      public static final PlayerWarpTeleportEvent.Cause VISITED_WARPS_MENU
      This constant is when a player teleports to the warp using the viisted warps menu.
    • PLAYER_WARP_MENU

      public static final PlayerWarpTeleportEvent.Cause PLAYER_WARP_MENU
      This constant is when a player teleports to the warp using the main player warp menu.
    • MYWARPS_MENU

      public static final PlayerWarpTeleportEvent.Cause MYWARPS_MENU
      This constant is when a player teleports to the warp using the my warps menu.
    • FAVOURITE_MENU

      public static final PlayerWarpTeleportEvent.Cause FAVOURITE_MENU
      This constant is when a player teleports to the warp using the favourite warps menu.
    • CONFIRM_MENU

      public static final PlayerWarpTeleportEvent.Cause CONFIRM_MENU
      This constant is when a player teleports to the warp using the confirm menu.
    • TELEPORT_SPONSOR

      public static final PlayerWarpTeleportEvent.Cause TELEPORT_SPONSOR
      This constant is when a player teleports to the warp using the sponsor menu.
  • Method Details

    • values

      public static PlayerWarpTeleportEvent.Cause[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PlayerWarpTeleportEvent.Cause valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null