Przeglądaj źródła

* atm title fixes

mastercake10 7 lat temu
rodzic
commit
7a7b9881fa

+ 2 - 2
TimeIsMoney2/src/modules/atm/ATM.java

@@ -192,7 +192,7 @@ public class ATM implements Listener, CommandExecutor {
 					}
 					ItemStack is = new ItemStack(Material.GOLD_NUGGET, 1);
 					ItemMeta im = is.getItemMeta();
-					im.setDisplayName("§cBank balance: " + ATM.getBankBalance(p));
+					im.setDisplayName(Main.finalconfig.getString("atm_balance").replace('&', '§') + " " + Main.economy.format(ATM.getBankBalance(p)));
 					is.setItemMeta(im);
 					e.getInventory().setItem(4, is);
 				}
@@ -203,7 +203,7 @@ public class ATM implements Listener, CommandExecutor {
 	}
 	private void openGUI(Player player) {
 		convertOldBank(player);
-		Inventory atm_gui = Bukkit.createInventory(null, 9, "§cATM");
+		Inventory atm_gui = Bukkit.createInventory(null, 9, Main.finalconfig.getString("atm_title").replace('&', '§'));
 		
 		//
 		ItemStack is = new ItemStack(Material.GOLD_NUGGET, 1);

+ 1 - 1
TimeIsMoney2/src/plugin.yml

@@ -3,7 +3,7 @@ depends: [Vault]
 soft-depends: [Essentials]
 author: Linus122
 main: de.Linus122.TimeIsMoney.Main
-version: 1951
+version: 1952
 description: Gives money for online time
 commands:
    timeismoney: