Added placeholder %fabledskyblock_island_bank_balance%

This commit is contained in:
Esophose 2019-02-23 18:08:36 -07:00
parent 978ad7be0a
commit a1634ed94a
2 changed files with 14 additions and 0 deletions

View File

@ -261,6 +261,15 @@ public class PlaceholderManager {
configLoad.getString("Placeholder.fabledskyblock_island_invites.Non-empty.Message")
.replace("%placeholder", "" + invitedPlayers));
}
} else if (placeholder.equalsIgnoreCase("fabledskyblock_island_bank_balance")) {
if (island == null) {
return ChatColor.translateAlternateColorCodes('&',
configLoad.getString("Placeholder.fabledskyblock_island_bank_balance.Empty.Message"));
} else {
return ChatColor.translateAlternateColorCodes('&',
configLoad.getString("Placeholder.fabledskyblock_island_bank_balance.Non-empty.Message"))
.replace("%placeholder", "" + island.getBankBalance());
}
}
return "";

View File

@ -1200,6 +1200,11 @@ Placeholder:
Message: "&c0"
Non-empty:
Message: "&f%placeholder"
fabledskyblock_island_bank_balance:
Empty:
Message: "&c0"
Non-empty:
Message: "&f%placeholder"
Hologram:
Leaderboard:
Level: