mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-01-10 17:58:03 +01:00
Added placeholder %fabledskyblock_island_bank_balance%
This commit is contained in:
parent
978ad7be0a
commit
a1634ed94a
@ -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 "";
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user