Class Language
java.lang.Object
com.andrei1058.bedwars.api.configuration.ConfigManager
com.andrei1058.bedwars.api.language.Language
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addCategoryMessages
(@NotNull org.bukkit.configuration.file.YamlConfiguration yml, String categoryName, String invName, String itemName, List<String> itemLore) Add required messages for a shop category to the given ymlstatic void
addContentMessages
(@NotNull org.bukkit.configuration.file.YamlConfiguration yml, String contentName, String categoryName, String itemName, List<String> itemLore) Add required messages for a shop category to the given ymlstatic void
addDefaultMessagesCommandItems
(Language language) Create missing name/ lore for items: multi arena lobby, waiting, spectatingvoid
addDefaultStatsMsg
(@NotNull org.bukkit.configuration.file.YamlConfiguration yml, String path, String name, String... lore) boolean
Check if a message was set.static String @NotNull []
getCountDownTitle
(@NotNull Language playerLang, int second) static Language
Get server default language.getIso()
Get language iso code.static Language
Get language with given info.Get language display name.Get loaded languages list.Get a string list in player's language.static String
Get message in player's language.static Language
static Language
getPlayerLanguage
(@NotNull org.bukkit.entity.Player player) Retrieve a player language.getScoreboard
(org.bukkit.entity.Player player, String path, String alternative) Get scoreboard strings.static boolean
isLanguageExist
(String iso) Check if a language exists.Get a color translated list.Get a color translated message.void
static void
saveIfNotExists
(String path, Object data) Save a value to file if not exists.static void
setDefaultLanguage
(Language defaultLanguage) Change server default language.static boolean
setPlayerLanguage
(UUID uuid, String iso) Change a player language and refresh scoreboard and custom join items.void
Set chat prefix.void
setPrefixStatic
(String prefix) static void
Save messages for unset stats items.void
Create messages paths for new shop categoriesMethods inherited from class com.andrei1058.bedwars.api.configuration.ConfigManager
compareArenaLoc, convertStringToArenaLocation, getArenaLoc, getArenaLocations, getBoolean, getConfigLoc, getDouble, getInt, getList, getName, getString, getYml, isFirstTime, reload, save, saveArenaLoc, saveConfigLoc, set, setName, stringLocationArenaFormat, stringLocationConfigFormat
-
Constructor Details
-
Language
-
-
Method Details
-
setPrefix
Set chat prefix. -
setPrefixStatic
-
getScoreboard
public static List<String> getScoreboard(org.bukkit.entity.Player player, String path, String alternative) Get scoreboard strings. -
getLangName
Get language display name. -
getMsg
Get message in player's language. -
getPlayerLanguage
Retrieve a player language. -
getPlayerLanguage
-
exists
Check if a message was set. -
getList
Get a string list in player's language. -
relocate
-
saveIfNotExists
Save a value to file if not exists. -
m
Get a color translated message. -
l
Get a color translated list. -
getLangByPlayer
-
isLanguageExist
Check if a language exists. -
getLang
Get language with given info.- Returns:
- null if you could not find.
-
getIso
Get language iso code. -
getLanguages
Get loaded languages list. -
setupCustomStatsMessages
public static void setupCustomStatsMessages()Save messages for unset stats items. -
addDefaultStatsMsg
-
addDefaultMessagesCommandItems
Create missing name/ lore for items: multi arena lobby, waiting, spectating -
setupUnSetCategories
public void setupUnSetCategories()Create messages paths for new shop categories -
addCategoryMessages
public static void addCategoryMessages(@NotNull @NotNull org.bukkit.configuration.file.YamlConfiguration yml, String categoryName, String invName, String itemName, List<String> itemLore) Add required messages for a shop category to the given yml -
addContentMessages
public static void addContentMessages(@NotNull @NotNull org.bukkit.configuration.file.YamlConfiguration yml, String contentName, String categoryName, String itemName, List<String> itemLore) Add required messages for a shop category to the given yml -
setPlayerLanguage
Change a player language and refresh scoreboard and custom join items. -
getCountDownTitle
-
setDefaultLanguage
Change server default language. -
getDefaultLanguage
Get server default language.
-