#include <lib.h>
#include <daemons.h>
inherit LIB_DAEMON;
int cmd(string str) {
int x;
if(!str || !archp(previous_object())) return 0;
sscanf(str, "%d", x);
x = (int)EVENTS_D->SetRebootInterval(x);
message("info", "Reboot interval set to "+x+" hours.", this_player());
return 1;
}
void help() {
message("help", "Syntax: <setreboot [interval]>\n\n"
"Sets up the interval at which the mud will automatically reboot. "
"The interval should be specified in hours.",
this_player()
);
}