mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-07 03:00:29 +01:00
Add placeholder fabledskyblock_island_exists
This commit is contained in:
parent
18ba514e3d
commit
3371e6a859
@ -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"));
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user