diff options
| author | Michael <[email protected]> | 2017-03-07 14:56:48 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-03-07 14:56:57 -0500 |
| commit | 2a747334bd926d79537b9e8d4f38c79a815752e5 (patch) | |
| tree | 0691439372e8584890a429c78591a0e8d7681573 /ShiftOS_TheReturn/Commands.cs | |
| parent | c64333d0f57c50a2519b5c631d44243ff41ca815 (diff) | |
| download | shiftos_thereturn-2a747334bd926d79537b9e8d4f38c79a815752e5.tar.gz shiftos_thereturn-2a747334bd926d79537b9e8d4f38c79a815752e5.tar.bz2 shiftos_thereturn-2a747334bd926d79537b9e8d4f38c79a815752e5.zip | |
WHOA HACKING
Diffstat (limited to 'ShiftOS_TheReturn/Commands.cs')
| -rw-r--r-- | ShiftOS_TheReturn/Commands.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/Commands.cs b/ShiftOS_TheReturn/Commands.cs index 76aa42f..0ea00e5 100644 --- a/ShiftOS_TheReturn/Commands.cs +++ b/ShiftOS_TheReturn/Commands.cs @@ -164,7 +164,35 @@ namespace ShiftOS.Engine } } + [Command("reconnect")] + [RequiresUpgrade("hacker101_deadaccts")] + public static bool Reconnect() + { + Console.WriteLine("--reconnecting to multi-user domain..."); + KernelWatchdog.MudConnected = true; + Console.WriteLine("--done."); + return true; + } + + [Command("disconnect")] + [RequiresUpgrade("hacker101_deadaccts")] + public static bool Disconnect() + { + Console.WriteLine("--connection to multi-user domain severed..."); + KernelWatchdog.MudConnected = false; + return true; + } + [Command("sendmsg")] + [KernelMode] + [RequiresUpgrade("hacker101_deadaccts")] + [RequiresArgument("header")] + [RequiresArgument("body")] + public static bool SendMessage(Dictionary<string, object> args) + { + ServerManager.SendMessage(args["header"].ToString(), args["body"].ToString()); + return true; + } } [RequiresUpgrade("mud_fundamentals")] |
