Do a tiny change

Big changes coming though
This commit is contained in:
gomeow
2013-03-24 22:53:05 -07:00
parent f99bf88f14
commit 6a6f5fccdf
2 changed files with 3 additions and 2 deletions
@@ -91,10 +91,9 @@ public class EconomyOperations {
double cost = bukkitConfig.getDouble("economy.refund-on-delete");
EconomyResponse resp = Main.econ.depositPlayer(player.getName(), cost);
if(resp.transactionSuccess()) {
player.sendMessage(Lang.TITLE.toString() + Lang.REFUND_AMOUNT.toString().replaceAll("%price", "" + cost));
player.sendMessage(Lang.TITLE.toString() + Lang.REFUND_AMOUNT.toString().replaceAll("%price", String.valueOf(cost)));
return true;
}
player.sendMessage(Lang.TITLE.toString() + ChatColor.RED + Lang.INSUFFICIENT_FUNDS);
return false;
}
@@ -32,6 +32,8 @@ public enum Lang {
@Override
public String toString() {
if(this == TITLE)
return ChatColor.translateAlternateColorCodes('&', lang.getString(this.path)) + " ";
return ChatColor.translateAlternateColorCodes('&', lang.getString(this.path));
}
}