diff --git a/src/main/java/com/iridium/iridiumskyblock/commands/DepositCommand.java b/src/main/java/com/iridium/iridiumskyblock/commands/DepositCommand.java index 7ce7bc512..35efdd56c 100644 --- a/src/main/java/com/iridium/iridiumskyblock/commands/DepositCommand.java +++ b/src/main/java/com/iridium/iridiumskyblock/commands/DepositCommand.java @@ -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) { diff --git a/src/main/java/com/iridium/iridiumskyblock/commands/WithdrawCommand.java b/src/main/java/com/iridium/iridiumskyblock/commands/WithdrawCommand.java index e21ecc1d6..e04a54891 100644 --- a/src/main/java/com/iridium/iridiumskyblock/commands/WithdrawCommand.java +++ b/src/main/java/com/iridium/iridiumskyblock/commands/WithdrawCommand.java @@ -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) {