Add placeholder fabledskyblock_island_exists

This commit is contained in:
Esophose 2019-03-22 23:44:32 -06:00
parent 18ba514e3d
commit 3371e6a859
2 changed files with 14 additions and 1 deletions

View File

@ -69,7 +69,15 @@ public class PlaceholderManager {
Config config = skyblock.getFileManager().getConfig(new File(skyblock.getDataFolder(), "language.yml"));
FileConfiguration configLoad = config.getFileConfiguration();
if (placeholder.equalsIgnoreCase("fabledskyblock_island_size")) {
if (placeholder.equalsIgnoreCase("fabledskyblock_island_exists")) {
if (island == null) {
return ChatColor.translateAlternateColorCodes('&',
configLoad.getString("Placeholder.fabledskyblock_island_exists.False.Message"));
} else {
return ChatColor.translateAlternateColorCodes('&',
configLoad.getString("Placeholder.fabledskyblock_island_exists.True.Message"));
}
} else if (placeholder.equalsIgnoreCase("fabledskyblock_island_size")) {
if (island == null) {
return ChatColor.translateAlternateColorCodes('&',
configLoad.getString("Placeholder.fabledskyblock_island_size.Empty.Message"));

View File

@ -1090,6 +1090,11 @@ Placeholder:
Message: "&f&oUnclaimed"
Non-empty:
Message: "&f[%position] %player [%votes]"
fabledskyblock_island_exists:
True:
Message: "&atrue"
False:
Message: "&cfalse"
fabledskyblock_island_size:
Empty:
Message: "&c0"