login plugin works yoy

This commit is contained in:
2026-07-26 01:02:27 +02:00
parent d9dfff3339
commit f93521a879
5 changed files with 55 additions and 31 deletions

View File

@@ -234,13 +234,13 @@ int main(int numArguments, char* pszArgs[]) {
} else {
throw std::runtime_error("Cannot open banned players list.");
}
PluginsManager::get().emit("ServerShutdown");
((MAIN_CLASS*)g_app)->level->saveLevelData();
delete app;
appContext.platform->finish();
delete appContext.platform;
PluginsManager::get().emit("ServerShutdown");
std::cout << "Quit correctly" << std::endl;
return g_exitCode;