Colosseum I18n Manager
A class that manages a plugin's i18n. This handles static and dynamic languages. Static languages are languages that never change and are usually loaded from the plugin jar. Dynamic languages are languages that can change at runtime and are usually loaded from a database or file. The plugin will cache dynamic languages to prevent unnecessary loading, and will reload them when invalidated. When a message is requested, the plugin will first check the cached dynamic languages, then the dynamic languages, and finally the static languages. If the get method is called with a CommandSender, the plugin will use the forced language if it is set, otherwise it will use the player's locale. If the player's locale is not found, the default language will be used. If the command sender is not a player, the default language will be used.
Properties
Functions
Gets the language map for the specified language.
Gets a message from the language file, for a specific language.
Gets a message from the language file, for a specific language. Placeholders in the message will be replaced with the specified values.
Gets a message from the language file, for a specific language. Placeholders in the message will be replaced with the specified values. If the command sender is a player, the message will be formatted based on the player's locale, else the default language will be used.
Checks if the specified language is available.
Invalidates the cached dynamic languages. This should be called when a dynamic language is updated. This will force the plugin to reload the dynamic language.