Enum MessageTarget

java.lang.Object
java.lang.Enum<MessageTarget>
de.themoep.connectorplugin.connector.MessageTarget
All Implemented Interfaces:
Serializable, Comparable<MessageTarget>, java.lang.constant.Constable

public enum MessageTarget extends Enum<MessageTarget>
  • Enum Constant Details

    • ALL_WITH_PLAYERS

      public static final MessageTarget ALL_WITH_PLAYERS
      Sends to all servers that have players connected. (So this doesn't queue with plugin messages)
    • ALL_QUEUE

      public static final MessageTarget ALL_QUEUE
      Tries to send to all servers. (With plugin messages it queues if no player is connected to server)
    • OTHERS_WITH_PLAYERS

      public static final MessageTarget OTHERS_WITH_PLAYERS
      Sends to all other servers that have players connected. (So this doesn't queue with plugin messages)
    • OTHERS_QUEUE

      public static final MessageTarget OTHERS_QUEUE
      Tries to send to all other servers. (With plugin messages it queues if no player is connected to server)
    • SERVER

      public static final MessageTarget SERVER
      Send to the players current server.
      Requires a server name or player parameter.
    • PROXY

      public static final MessageTarget PROXY
      Send to the players current proxy.
      Requires a proxy id or player parameter
    • ALL_PROXIES

      public static final MessageTarget ALL_PROXIES
      Send to all connected proxies
    • OTHER_PROXIES

      public static final MessageTarget OTHER_PROXIES
      Send to all proxies that aren't the current proxy
  • Method Details

    • values

      public static MessageTarget[] 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 MessageTarget 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
    • getType

      public MessageTarget.Type getType()
    • getSource

      public MessageTarget.Type getSource()