Browse Source

made ATM create messages editable

closes #78
MasterCake 3 years ago
parent
commit
7dfd5af0ed

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

@@ -421,12 +421,12 @@ public class ATM implements Listener, CommandExecutor {
 					Sign sign = (Sign) e.getBlock().getState();
 					if (sign.getLine(0).equalsIgnoreCase("[ATM]") || sign.getLine(0).equalsIgnoreCase(atmSignLabel) || sign.getLine(0).equalsIgnoreCase(CC(atmSignLabel))) {
 						if (!e.getPlayer().hasPermission("tim.atm.place")) {
-							e.getPlayer().sendMessage(CC("&cYou dont have permissions to build ATM's (tim.atm.place)"));
+							e.getPlayer().sendMessage(CC(Main.finalconfig.getString("message_atm_nopermbuild")));
 							sign.setLine(0, "");
 						} else {
 							sign.setLine(0, CC(atmSignLabel));
 							sign.update();
-							e.getPlayer().sendMessage(CC("&2ATM created! (You can also write something in the Lines 2-4)"));
+							e.getPlayer().sendMessage(CC(Main.finalconfig.getString("message_atm_created")));
 						}
 					}
 				}

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

@@ -64,6 +64,8 @@ message_afk_actionbar_payout: "&6You earned &c%money% &6for 10 minutes online ti
 message_atm_noperms: "&cYou don't have the permission to use ATM's!"
 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)"
 
 # Set this to true to send the payout limit reached message only one time once reached
 display-payout-limit-reached-message-once: false