Skip to content

Commit

Permalink
Add debug messages to eco conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Warriorrrr committed Oct 23, 2024
1 parent 9b2ed07 commit 0bedfb4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2956,10 +2956,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
Expand Down

0 comments on commit 0bedfb4

Please sign in to comment.