tenta assim
void Game::shutdown()
{
std::clog << "Preparando";
Scheduler::getInstance().shutdown();
std::clog << " para";
Dispatcher::getInstance().shutdown();
std::clog << " DESLIGAR";
Spawns::getInstance()->clear();
std::clog << " o";
Raids::getInstance()->clear();
std::clog << " servidor";
cleanup();
std::clog << "- Concluido e Desligando." << std::endl;
if(services)
services->stop();
#ifndef __DONT_FORCE_SHUTDOWN__
exit(-1);
#endif
}
void Game::cleanup()
{
config.lua se n tiver a tag coloca
closeInstanceOnShutdown = true
globalSaveEnabled = true
globalSaveHour = 5
globalSaveMinute = 0
shutdownAtGlobalSave = true
cleanMapAtGlobalSave = false
de /shutdown