Do a tiny change
Big changes coming though
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user