Package fr.Alphart.BAT.I18n
Class I18n
java.lang.Object
fr.Alphart.BAT.I18n.I18n
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static String[]
preprocessArgs
(String[] formatArgs) Preprocess formatArgs to replace value contained in the map argsReplacer, in order to have global instead of global for examplestatic void
reload()
static String
Return message by its keystatic String
Format a message with given object.static net.md_5.bungee.api.chat.BaseComponent[]
Same astr_(String, String[])
except it adds a prefixstatic net.md_5.bungee.api.chat.BaseComponent[]
Same astr_(String, String[])
except it adds a prefix
-
Method Details
-
getString
- Throws:
IllegalArgumentException
-
tr_
Format a message with given object. Parse color- Parameters:
message
-formatObject
-- Returns:
- String
-
tr_
Return message by its key- Parameters:
message
-- Returns:
- String
-
tr__
Same astr_(String, String[])
except it adds a prefix- Parameters:
message
-formatObject
-- Returns:
-
tr__
Same astr_(String, String[])
except it adds a prefix- Parameters:
message
-formatObject
-- Returns:
-
preprocessArgs
Preprocess formatArgs to replace value contained in the map argsReplacer, in order to have global instead of global for example- Parameters:
args
-- Returns:
-
reload
public static void reload()
-