From 949cf01fa237b946df15234c0086ce4c2eb08d25 Mon Sep 17 00:00:00 2001 From: Warrior <50800980+Warriorrrr@users.noreply.github.com> Date: Wed, 23 Oct 2024 16:30:37 +0200 Subject: [PATCH] Add debug messages to eco conversion --- .../palmergames/bukkit/towny/command/TownyAdminCommand.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Towny/src/main/java/com/palmergames/bukkit/towny/command/TownyAdminCommand.java b/Towny/src/main/java/com/palmergames/bukkit/towny/command/TownyAdminCommand.java index d0038e0104..281ed87c1d 100644 --- a/Towny/src/main/java/com/palmergames/bukkit/towny/command/TownyAdminCommand.java +++ b/Towny/src/main/java/com/palmergames/bukkit/towny/command/TownyAdminCommand.java @@ -2968,10 +2968,13 @@ private void parseAdminConvertEconomyCommand(CommandSender sender, String[] args if (entry.getValue() == 0) continue; - if (!target.hasAccount(entry.getKey())) + if (!target.hasAccount(entry.getKey())) { + TownyMessaging.sendDebugMsg("Creating new account for " + entry.getKey().getUUID()); target.newAccount(entry.getKey()); + } target.setBalance(entry.getKey(), entry.getValue()); + TownyMessaging.sendDebugMsg("Setting balance of account " + entry.getKey().getUUID() + " to " + entry.getValue()); } // Change config to modern & setup economy again