Enum Class TranslatableMessage
- All Implemented Interfaces:
Serializable
,Comparable<TranslatableMessage>
,Constable
Keeps track of all translatable messages
- Author:
- Thorin, Pheotis
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA generic message to display when an addon prevents the user from doing somethingThe message to display when a player is lacking permissions to create a bungee or inter-server networkThe message to display when a player tries to interact / create / enter a bungee or inter-server gate.The message to display if a BungeeCord exit gate is invalidThe message to display if a BungeeCord exit network is invalidThe message to display if creating a legacy BungeeCord portal and the sign is missing informationThe last line on a sign for legacy bungee portalsThe message to display whenever the admin-help is executedThe message to display whenever the admin-info is executedThe message to display whenever the reload command is executedThe message to be displayed when a stargate has been successfully createdThe message to be display when a portal has successfully been created on a personal networkThe name of a custom networkThe name of the default networkThe message to be displayed when a player is missing the required permissions to teleport to a destinationThe message to display when a networked portal does not have any destinationsThe message to display when a stargate has been destroyedThe sign text to use for marking a stargate as disconnectedThe message to be displayed when a player successfully is charged moneyThe message to be displayed when a player receives money from an owned portalThe name of a cross server networkThe name of a portalThe message to display when a new stargate's name is already in useThe message to display if a new stargate conflicts with an existing oneThe message to display during portal creation if the chosen network changedThe message to display when a player is lacking permission to create a gateDesignThe second line of a portals sign when displaying portal infoThe message to display when a Fancy Inter-server type portal is created, but server is on a local databaseThe message to display if a stargate doesn't have a valid destinationThe message to display when the NetworkType is not compatible with given nameThe message to display when a portal or network name exceeds the max lengthThe message to displayThe message to be displayed if a player is missing the sufficient funds to perform an actionThe message to display when a network is in conflict with a network of another typeThe message to display when a player is lacking the permission to access a networkThe message to display when a network is already fullThe name of a local networkThe message to send if the player is teleporting past the world-borderThe message to send when installing parity modulesThe name of a personal networkThe [Stargate] prefix used at the start of all messagesThe sign text to use for marking a stargate as randomThe first line of the right-click prompt to display on signsThe message to display if a stargate is created within the spawn areaThe message to display when a player is being teleportedThe message to be displayed when gate is used by another playerThe name of a terminal networkThe second line of the right-click prompt to display on signsThe message to send when there is an inter-server conflictThe message to send when a flag is not implemented yetThe message to send whenever an inter-server portal is createdThe message to display when a player does not have access to a world -
Method Summary
Modifier and TypeMethodDescriptionGets this translatable message's string key used to identify the message in language filesstatic TranslatableMessage
Parses the given string key into its enum representationstatic TranslatableMessage
Returns the enum constant of this class with the specified name.static TranslatableMessage[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PREFIX
The [Stargate] prefix used at the start of all messages -
TELEPORT
The message to display when a player is being teleported -
DESTROY
The message to display when a stargate has been destroyed -
DESTINATION_EMPTY
The message to display when a networked portal does not have any destinations -
INVALID
The message to display if a stargate doesn't have a valid destinationThis is triggered when a stargate's button is clicked and it's missing a valid destination. It's also triggered when trying to teleport if the destination is missing.
-
DENY
The message to be displayed when a player is missing the required permissions to teleport to a destination -
TELEPORTATION_OCCUPIED
The message to be displayed when gate is used by another player -
LACKING_FUNDS
The message to be displayed if a player is missing the sufficient funds to perform an action -
ECO_DEDUCT
The message to be displayed when a player successfully is charged money -
ECO_OBTAIN
The message to be displayed when a player receives money from an owned portal -
CREATE
The message to be displayed when a stargate has been successfully created -
CREATE_PERSONAL
The message to be display when a portal has successfully been created on a personal network -
NET_DENY
The message to display when a player is lacking the permission to access a network -
NET_CONFLICT
The message to display when a network is in conflict with a network of another type -
GATE_DENY
The message to display when a player is lacking permission to create a gateDesign -
WORLD_DENY
The message to display when a player does not have access to a world -
INVALID_NAME_LENGTH
The message to display when a portal or network name exceeds the max length -
INVALID_NAME
The message to display when the NetworkType is not compatible with given name -
ADDON_INTERFERE
A generic message to display when an addon prevents the user from doing something -
GATE_ALREADY_EXIST
The message to display when a new stargate's name is already in use -
NET_FULL
The message to display when a network is already full -
GATE_CONFLICT
The message to display if a new stargate conflicts with an existing one -
RIGHT_CLICK
The first line of the right-click prompt to display on signs -
TO_USE
The second line of the right-click prompt to display on signs -
RANDOM
The sign text to use for marking a stargate as random -
DISCONNECTED
The sign text to use for marking a stargate as disconnected -
BUNGEE_DENY
The message to display when a player is lacking permissions to create a bungee or inter-server network -
BUNGEE_INVALID_NETWORK
The message to display if a BungeeCord exit network is invalidThe message to display if a player is teleporting through BungeeCord and the player cannot be teleported to the destination portal because the network given in the teleportation message is invalid.
-
BUNGEE_INVALID_GATE
The message to display if a BungeeCord exit gate is invalidThe message to display if a player is teleporting through BungeeCord and the player cannot be teleported to the destination portal because the gate given in the teleportation message is invalid.
-
BUNGEE_DISABLED
The message to display when a player tries to interact / create / enter a bungee or inter-server gate. -
INTER_SERVER_DISABLED
The message to display when a Fancy Inter-server type portal is created, but server is on a local database -
BUNGEE_SIGN_LINE_4
The last line on a sign for legacy bungee portals -
LACKING_FLAGS_PERMISSION
The message to display -
BUNGEE_LACKING_SIGN_INFORMATION
The message to display if creating a legacy BungeeCord portal and the sign is missing information -
SPAWN_CHUNKS_CONFLICTING
The message to display if a stargate is created within the spawn area -
GATE_CREATE_FALLBACK
The message to display during portal creation if the chosen network changed -
COMMAND_RELOAD
The message to display whenever the reload command is executed -
COMMAND_INFO
The message to display whenever the admin-info is executed -
COMMAND_HELP
The message to display whenever the admin-help is executed -
GATE_OWNED_BY
The second line of a portals sign when displaying portal info -
OUTSIDE_WORLD_BORDER
The message to send if the player is teleporting past the world-border -
UNIMPLEMENTED_CONFLICT
The message to send when there is an inter-server conflict -
UNIMPLEMENTED_INTER_SERVER
The message to send whenever an inter-server portal is created -
UNIMPLEMENTED_FLAG
The message to send when a flag is not implemented yet -
GATE
The name of a portal -
NETWORK
The name of a local network -
FANCY_INTERSERVER
The name of a cross server network -
DEFAULT_NETWORK
The name of the default network -
TERMINAL_NETWORK
The name of a terminal network -
PERSONAL_NETWORK
The name of a personal network -
CUSTOM_NETWORK
The name of a custom network -
PARITY_UPGRADE
The message to send when installing parity modules
-
-
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
-
getMessageKey
Gets this translatable message's string key used to identify the message in language files- Returns:
This translatable message's string key
-
parse
Parses the given string key into its enum representation- Parameters:
key
-The string key to parse
- Returns:
The TranslatableMessage corresponding to the key, or null if not found
-