Skip to content

Commit

Permalink
RELEASE 3.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
JustBru00 committed Jun 24, 2017
1 parent 8535fd7 commit 19caca8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public static EcoMessage takeMoney(Player player, EpicRenameCommands erc){
}

EconomyResponse r = Main.econ.withdrawPlayer(player, Main.getInstance().getConfig().getInt("economy.costs.rename"));

Debug.send("Value from config was: " + Main.getInstance().getConfig().getInt("economy.costs.rename"));

if (r.transactionSuccess()) {
Messager.msgPlayer(formatMsg(Main.getMsgFromConfig("economy.transaction_success"), r), player);
Expand Down Expand Up @@ -78,7 +80,7 @@ public static EcoMessage takeMoney(Player player, EpicRenameCommands erc){
*/
public static String formatMsg(String msg, EconomyResponse r) {

msg = msg.replace("{cost}", String.valueOf(100.0));
msg = msg.replace("{cost}", String.valueOf(r.amount));

if (!r.transactionSuccess()) msg = msg.replace("{error}", r.errorMessage);
return msg;
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: EpicRename
main: com.gmail.justbru00.epic.rename.main.v3.Main
version: 3.1.1
version: 3.1.2
description: Renames items.
author: Justin Brubaker
softdepend: [Vault]
Expand Down

0 comments on commit 19caca8

Please sign in to comment.