Skip to content

Commit

Permalink
Fix bank command color issues (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlsf authored Jul 2, 2021
1 parent afee145 commit 13ca947
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void execute(CommandSender sender, String[] args) {
try {
amount = bankItem.get().deposit(player, Double.parseDouble(args[2]));
} catch (NumberFormatException e) {
player.sendMessage(IridiumSkyblock.getInstance().getMessages().notANumber.replace("%prefix%", IridiumSkyblock.getInstance().getConfiguration().prefix));
player.sendMessage(StringUtils.color(IridiumSkyblock.getInstance().getMessages().notANumber.replace("%prefix%", IridiumSkyblock.getInstance().getConfiguration().prefix)));
return;
}
if (amount > 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void execute(CommandSender sender, String[] args) {
try {
amount = bankItem.get().withdraw(player, Double.parseDouble(args[2]));
} catch (NumberFormatException e) {
player.sendMessage(IridiumSkyblock.getInstance().getMessages().notANumber.replace("%prefix%", IridiumSkyblock.getInstance().getConfiguration().prefix));
player.sendMessage(StringUtils.color(IridiumSkyblock.getInstance().getMessages().notANumber.replace("%prefix%", IridiumSkyblock.getInstance().getConfiguration().prefix)));
return;
}
if (amount > 0) {
Expand Down

0 comments on commit 13ca947

Please sign in to comment.