plugin.getEconomy().depositPlayer(player, amount);
} catch (NoSuchMethodError e) {
plugin.getEconomy().depositPlayer(player.getName(), amount);
}
String currencyName = getCurrencyName(amount);
<BUG>player.sendMessage(plugin.getChatHeader() + ChatColor.translateAlternateColorCodes('&',
plugin.getPluginLang().getString("money-reward-received", "You received: AMOUNT!")

.replace("AMOUNT", amount + " " + currencyName)));
}</BUG>
}

plugin.getEconomy().depositPlayer(player, amount);
} catch (NoSuchMethodError e) {
plugin.getEconomy().depositPlayer(player.getName(), amount);
}
String currencyName = getCurrencyName(amount);
player.sendMessage(plugin.getChatHeader() + ChatColor.translateAlternateColorCodes('&',
StringUtils.replaceOnce(
plugin.getPluginLang().getString("money-reward-received", "You received: AMOUNT!"),
"AMOUNT", amount + " " + currencyName)));
}
}
