Automatically create account on login screen

This commit is contained in:
KingRainbow44
2022-04-20 00:03:01 -04:00
parent 85801df482
commit 50e630b1fa
3 changed files with 11 additions and 10 deletions

View File

@@ -188,6 +188,7 @@ public final class ServerCommands {
} else {
CommandHandler.sendMessage(null, "Account created with UID " + account.getPlayerId() + ".");
account.addPermission("*"); // Grant the player superuser permissions.
account.save(); // Save account to database.
}
return;
case "delete":