_setreboot.c

foundationI_fluffos_v1/lib/cmds/adm/_setreboot.c · 538 B

From the archive foundation1_fluffos_v1.zip

Download the archive   « Back to the archive contents

#include <std.h>
#include <daemons.h>

inherit DAEMON;

int cmd_setreboot(string str) {
    int x;

    if(!str || !adminp(previous_object())) return 0;
    sscanf(str, "%d", x);
    EVENTS_D->set_reboot_interval(x);
    message("info", "Reboot interval set to "+str+" 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()
    );
}

Site Stats

Snippets: 1791
Codebases: 571