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");
|
double cost = bukkitConfig.getDouble("economy.refund-on-delete");
|
||||||
EconomyResponse resp = Main.econ.depositPlayer(player.getName(), cost);
|
EconomyResponse resp = Main.econ.depositPlayer(player.getName(), cost);
|
||||||
if(resp.transactionSuccess()) {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
player.sendMessage(Lang.TITLE.toString() + ChatColor.RED + Lang.INSUFFICIENT_FUNDS);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ public enum Lang {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
if(this == TITLE)
|
||||||
|
return ChatColor.translateAlternateColorCodes('&', lang.getString(this.path)) + " ";
|
||||||
return ChatColor.translateAlternateColorCodes('&', lang.getString(this.path));
|
return ChatColor.translateAlternateColorCodes('&', lang.getString(this.path));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user