don't enable if no world is loaded

develop
Susan 2021-01-29 11:26:46 +00:00
parent b57286c59c
commit a3b0cda069
1 changed files with 11 additions and 2 deletions

@ -141,9 +141,18 @@ command_result df_seedwatch(color_ostream &out, vector<string>& parameters)
return CR_WRONG_USAGE; return CR_WRONG_USAGE;
} }
else if(par == "start") else if(par == "start")
{
if(Core::getInstance().isWorldLoaded())
{ {
running = true; running = true;
out.print("seedwatch supervision started.\n"); out.print("seedwatch supervision started.\n");
} else {
out.printerr(
"This plugin needs a fortress to be loaded and will deactivate automatically otherwise.\n"
"Activate with 'seedwatch start' after you load the game.\n"
);
}
} }
else if(par == "stop") else if(par == "stop")
{ {