Enum Class InternalMessages
- All Implemented Interfaces:
Serializable, Comparable<InternalMessages>, Constable
Internal messages keys for MagicUtils library (platform-agnostic).
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCommand executed successfully.Generic execution failure.Help inline aliases text.Help-generated argument permission description.Help available commands section label.Built-in help command description.Help target command not found.Help default value marker.Help hover text for clickable entries.Help aliases label.Help arguments label.Help command label.Help description label.Help subcommands label.Help next page hover.Help previous page hover.Help empty state when nothing matches.Help fallback description.Help optional argument marker.Help page label.Help search query prefix.Help command sender missing.Built-in help subcommand description.Help header title.Help is unavailable because no manager is ready.Help usage separator between direct and subcommand forms.Help values marker.Internal error while running command.Invalid arguments supplied.Lacking permission to run command.Command not found.Prompt to specify subcommand.Unknown subcommand provided.CommandMap unavailable.Failed to obtain CommandMap.Message must be set before sending.Missing @CommandInfo annotation.Missing @ConfigFile annotation.Command registry not initialised.Required config value absent.All commands reloaded.All sections reloaded.Single command reloaded.Single global setting reloaded.All global settings reloaded.Single section reloaded.Available languages list.Current language value.Settings command received invalid args.Requested key missing.Key set confirmation.Value of a specific key.Requested language missing.Language manager not initialised.Alias registered.Alias usage line.Command registered.Command usage line.Created default config file.Failed to load language file.Failed to save custom messages.Generated permissions notice.Language file loaded.Section cannot be reloaded.Subcommand usage list.Command unregistered. -
Method Summary
Modifier and TypeMethodDescriptionget()Get localized value or default.Get localized value with replacements or default.getKey()Fully qualified message key (magicutils.*).Get localized value for an audience using a scoped language manager with fallback to the global manager.Get localized value with replacements for an audience using a scoped language manager with fallback to the global manager.Get localized value using a scoped language manager with fallback to the global manager.static InternalMessagesReturns the enum constant of this class with the specified name.static InternalMessages[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CMD_NO_PERMISSION
Lacking permission to run command. -
CMD_EXECUTION_ERROR
Generic execution failure. -
CMD_EXECUTED
Command executed successfully. -
CMD_SPECIFY_SUBCOMMAND
Prompt to specify subcommand. -
CMD_UNKNOWN_SUBCOMMAND
Unknown subcommand provided. -
CMD_INVALID_ARGUMENTS
Invalid arguments supplied. -
CMD_NOT_FOUND
Command not found. -
CMD_INTERNAL_ERROR
Internal error while running command. -
CMD_HELP_COMMAND_DESCRIPTION
Built-in help command description. -
CMD_HELP_SUBCOMMAND_DESCRIPTION
Built-in help subcommand description. -
CMD_HELP_SENDER_UNAVAILABLE
Help command sender missing. -
CMD_HELP_UNAVAILABLE
Help is unavailable because no manager is ready. -
CMD_HELP_COMMAND_NOT_FOUND
Help target command not found. -
CMD_HELP_TITLE
Help header title. -
CMD_HELP_AVAILABLE_COMMANDS
Help available commands section label. -
CMD_HELP_NO_COMMANDS_FOUND
Help empty state when nothing matches. -
CMD_HELP_LABEL_COMMAND
Help command label. -
CMD_HELP_LABEL_DESCRIPTION
Help description label. -
CMD_HELP_LABEL_ALIASES
Help aliases label. -
CMD_HELP_LABEL_SUBCOMMANDS
Help subcommands label. -
CMD_HELP_LABEL_ARGUMENTS
Help arguments label. -
CMD_HELP_OPTIONAL
Help optional argument marker. -
CMD_HELP_DEFAULT_VALUE
Help default value marker. -
CMD_HELP_VALUES
Help values marker. -
CMD_HELP_PAGE_LABEL
Help page label. -
CMD_HELP_NAV_PREVIOUS
Help previous page hover. -
CMD_HELP_NAV_NEXT
Help next page hover. -
CMD_HELP_QUERY_PREFIX
Help search query prefix. -
CMD_HELP_NO_DESCRIPTION
Help fallback description. -
CMD_HELP_HOVER_SHOW
Help hover text for clickable entries. -
CMD_HELP_ALIASES_INLINE
Help inline aliases text. -
CMD_HELP_ARGUMENT_PERMISSION
Help-generated argument permission description. -
CMD_HELP_USAGE_OR
Help usage separator between direct and subcommand forms. -
SETTINGS_LANG_NOT_INIT
Language manager not initialised. -
SETTINGS_INVALID_ARGS
Settings command received invalid args. -
SETTINGS_CURRENT_LANG
Current language value. -
SETTINGS_AVAILABLE_LANGS
Available languages list. -
SETTINGS_LANG_NOT_FOUND
Requested language missing. -
SETTINGS_KEY_NOT_FOUND
Requested key missing. -
SETTINGS_KEY_VALUE
Value of a specific key. -
SETTINGS_KEY_SET
Key set confirmation. -
RELOAD_ALL_COMMANDS
All commands reloaded. -
RELOAD_COMMAND
Single command reloaded. -
RELOAD_ALL_SECTIONS
All sections reloaded. -
RELOAD_SECTION
Single section reloaded. -
RELOAD_GLOBAL_SETTINGS
All global settings reloaded. -
RELOAD_GLOBAL_SETTING
Single global setting reloaded. -
SYS_LOADED_LANGUAGE
Language file loaded. -
SYS_FAILED_LOAD_LANGUAGE
Failed to load language file. -
SYS_FAILED_SAVE_MESSAGES
Failed to save custom messages. -
SYS_CREATED_DEFAULT_CONFIG
Created default config file. -
SYS_SECTION_NOT_RELOADABLE
Section cannot be reloaded. -
SYS_COMMAND_REGISTERED
Command registered. -
SYS_COMMAND_USAGE
Command usage line. -
SYS_SUBCOMMAND_USAGES
Subcommand usage list. -
SYS_ALIAS_REGISTERED
Alias registered. -
SYS_ALIAS_USAGE
Alias usage line. -
SYS_GENERATED_PERMISSIONS
Generated permissions notice. -
SYS_UNREGISTERED_COMMAND
Command unregistered. -
ERR_MESSAGE_NOT_SET
Message must be set before sending. -
ERR_FAILED_GET_COMMANDMAP
Failed to obtain CommandMap. -
ERR_REGISTRY_NOT_INITIALIZED
Command registry not initialised. -
ERR_COMMANDMAP_NOT_AVAILABLE
CommandMap unavailable. -
ERR_MISSING_COMMANDINFO
Missing @CommandInfo annotation. -
ERR_MISSING_CONFIGFILE
Missing @ConfigFile annotation. -
ERR_REQUIRED_CONFIG_MISSING
Required config value absent.
-
-
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
-
getKey
-
get
-
get
-
getScoped
-
getScoped
-
getScoped
Get localized value with replacements for an audience using a scoped language manager with fallback to the global manager.- Parameters:
scope- scope identifieraudience- target audiencereplacements- placeholder/value pairs- Returns:
- translated text with replacements or default message
-