Enum Class PluginChannel
- All Implemented Interfaces:
Serializable
,Comparable<PluginChannel>
,Constable
The channel represents the different usable plugin channels that can be used with BungeeCord
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRepresents the BungeeCord plugin channelRepresents the BungeeCord sub-channel for forwarding a custom plugin message to another serverRepresents the BungeeCord sub-channel for getting the name of this serverRepresents the custom forwarding sub-channel used by legacy stargate plugins; for backwards compatibilityRepresents the custom forwarding sub-channel used when a stargate is added to or removed from a networkRepresents the BungeeCord sub-channel for making a player connect to a serverRepresents the custom forwarding sub-channel used when a player is teleported from a stargate through BungeeCordRepresents the custom forwarding sub-channel used for nothing ???Represents the custom forwarding sub-channel used for nothing ??? -
Method Summary
Modifier and TypeMethodDescriptionGets this plugin channel's name/string representationstatic PluginChannel
Parses a channel's string representation into a channel enumstatic PluginChannel
Returns the enum constant of this class with the specified name.static PluginChannel[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BUNGEE
Represents the BungeeCord plugin channel -
GET_SERVER
Represents the BungeeCord sub-channel for getting the name of this server -
PLAYER_CONNECT
Represents the BungeeCord sub-channel for making a player connect to a server -
FORWARD
Represents the BungeeCord sub-channel for forwarding a custom plugin message to another server -
PLAYER_TELEPORT
Represents the custom forwarding sub-channel used when a player is teleported from a stargate through BungeeCord -
NETWORK_CHANGED
Represents the custom forwarding sub-channel used when a stargate is added to or removed from a network -
LEGACY_BUNGEE
Represents the custom forwarding sub-channel used by legacy stargate plugins; for backwards compatibility -
PLUGIN_ENABLE
Represents the custom forwarding sub-channel used for nothing ??? -
PLUGIN_DISABLE
Represents the custom forwarding sub-channel used for nothing ???
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getChannel
Gets this plugin channel's name/string representation- Returns:
This plugin channel's string representation
-
parse
Parses a channel's string representation into a channel enum- Parameters:
channel
-The channel name to parse
- Returns:
The matching channel enum, or null if no match was found
-