void ClientCreateCharacterCallback::run() { client->info("ClientCreateCharacterCallback::run()"); PlayerManager* playerManager = server->getPlayerManager(); bool success = playerManager->createPlayer(this); if (success) { client->info("success creating char"); } else { client->info("failed to create char", true); } }
void ClientCreateCharacterCallback::run() { if (client->getAccountID() == 0) { client->error("character create attempt with account id 0"); return; } client->info("ClientCreateCharacterCallback::run()"); PlayerManager* playerManager = server->getPlayerManager(); bool success = playerManager->createPlayer(this); if (success) { client->info("success creating char"); } else { client->info("failed to create char", true); } }