MasterCake преди 3 години
родител
ревизия
32d8feead3
променени са 2 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 2 2
      Plugin/src/main/java/de/Linus122/TimeIsMoney/ATM.java
  2. 2 0
      Plugin/src/main/resources/config.yml

+ 2 - 2
Plugin/src/main/java/de/Linus122/TimeIsMoney/ATM.java

@@ -164,7 +164,7 @@ public class ATM implements Listener, CommandExecutor {
 			EconomyResponse response = Main.economy.depositPlayer(p, amount);
 			if (response.type == ResponseType.SUCCESS) {
 				ATM.withdrawBank(p, amount);
-				p.sendMessage(CC(Main.finalconfig.getString("atm_withdraw")) + " " + Main.economy.format(amount));
+				p.sendMessage(String.format(CC(Main.finalconfig.getString("message_atm_withdrew")), Main.economy.format(amount)));
 			}
 		} else {
 			p.sendMessage(CC(Main.finalconfig.getString("message_atm_nomoneyinbank")));
@@ -175,7 +175,7 @@ public class ATM implements Listener, CommandExecutor {
 		if (Main.economy.has(p, amount)) {
 			ATM.depositBank(p, amount);
 			Main.economy.withdrawPlayer(p, amount);
-			p.sendMessage(CC(Main.finalconfig.getString("atm_deposit")) + " " + Main.economy.format(amount));
+			p.sendMessage(String.format(CC(Main.finalconfig.getString("message_atm_deposited")), Main.economy.format(amount)));
 		} else {
 			p.sendMessage(CC(Main.finalconfig.getString("message_atm_nomoney")));
 		}

+ 2 - 0
Plugin/src/main/resources/config.yml

@@ -66,6 +66,8 @@ message_atm_nomoneyinbank: "&cYou don't have enough money in bank!"
 message_atm_nomoney: "&cYou don't have enough money!"
 message_atm_nopermbuild: "&cYou don't have permissions to build ATM's (tim.atm.place)"
 message_atm_created: "&2ATM created! (You can also write something in the Lines 2-4)"
+message_atm_withdrew: "&cTook &a%s &cfrom your account."
+message_atm_deposited: "&2Added &a%s &2to your account."
 
 # Set this to true to send the payout limit reached message only one time once reached
 display-payout-limit-reached-message-once: false