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 c73856c commit 949cf01
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 949cf01

Please sign in to comment.