aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/Commands.cs
diff options
context:
space:
mode:
authorpfg <[email protected]>2017-03-12 09:45:11 -0700
committerpfg <[email protected]>2017-03-12 09:45:11 -0700
commit5ee6043b9ea5baef45c08b5fb92fdebadd610dc0 (patch)
tree947cffe3f4693f9559cc7aaf5a2f3500e23f2b53 /ShiftOS_TheReturn/Commands.cs
parent6460ccee378e15408768337dcdc1bc77da07da53 (diff)
parent11da99a43bb3225ebd5fc82cb4765309804f8eba (diff)
downloadshiftos_thereturn-5ee6043b9ea5baef45c08b5fb92fdebadd610dc0.tar.gz
shiftos_thereturn-5ee6043b9ea5baef45c08b5fb92fdebadd610dc0.tar.bz2
shiftos_thereturn-5ee6043b9ea5baef45c08b5fb92fdebadd610dc0.zip
Command theming complete
Diffstat (limited to 'ShiftOS_TheReturn/Commands.cs')
-rw-r--r--ShiftOS_TheReturn/Commands.cs52
1 files changed, 9 insertions, 43 deletions
diff --git a/ShiftOS_TheReturn/Commands.cs b/ShiftOS_TheReturn/Commands.cs
index 779c616..73a7e2d 100644
--- a/ShiftOS_TheReturn/Commands.cs
+++ b/ShiftOS_TheReturn/Commands.cs
@@ -133,6 +133,7 @@ namespace ShiftOS.Engine
[Namespace("mud")]
public static class MUDCommands
{
+ [MultiplayerOnly]
[Command("status")]
public static bool Status()
{
@@ -155,6 +156,8 @@ namespace ShiftOS.Engine
{
Console.WriteLine("{ERROR}: " + ex.Message);
}
+
+ TerminalBackend.PrefixEnabled = false;
return true;
}
catch (Exception ex)
@@ -174,6 +177,7 @@ namespace ShiftOS.Engine
return true;
}
+ [MultiplayerOnly]
[Command("disconnect")]
[RequiresUpgrade("hacker101_deadaccts")]
public static bool Disconnect()
@@ -183,6 +187,7 @@ namespace ShiftOS.Engine
return true;
}
+ [MultiplayerOnly]
[Command("sendmsg")]
[KernelMode]
[RequiresUpgrade("hacker101_deadaccts")]
@@ -195,48 +200,6 @@ namespace ShiftOS.Engine
}
}
- [RequiresUpgrade("mud_fundamentals")]
- [Namespace("chat")]
- public static class ChatCommands
- {
- [RequiresArgument("id")]
- [RequiresArgument("name")]
- [RequiresArgument("topic")]
- [Command("create")]
- public static bool CreateChat(Dictionary<string, object> args)
- {
- string id = "";
- string topic = "";
- string name = "";
- int max_users = 0;
-
- id = args["id"] as string;
- name = args["topic"] as string;
- topic = args["name"] as string;
-
- bool valid = true;
-
- if (string.IsNullOrEmpty(id) || string.IsNullOrEmpty(name) || string.IsNullOrEmpty(topic))
- valid = false;
-
- if (valid)
- {
- ServerManager.SendMessage("chat_create", $@"{{
- id: ""{id}"",
- name: ""{name}"",
- topic: ""{topic}"",
- max_users: {max_users}
-}}");
- }
- else
- {
- Console.WriteLine("{CHAT_PLEASE_PROVIDE_VALID_CHANNEL_DATA}");
- }
- return true;
- }
-
- }
-
[TutorialLock]
[Namespace("trm")]
public static class TerminalCommands
@@ -266,6 +229,7 @@ namespace ShiftOS.Engine
}
}
+ [MultiplayerOnly]
[Namespace("dev")]
public static class ShiftOSDevCommands
{
@@ -475,6 +439,7 @@ namespace ShiftOS.Engine
return true;
}
+ [MultiplayerOnly]
[Command("save")]
public static bool Save()
{
@@ -482,6 +447,7 @@ namespace ShiftOS.Engine
return true;
}
+ [MultiplayerOnly]
[Command("status")]
public static bool Status()
{
@@ -494,7 +460,7 @@ Upgrades: {SaveSystem.CurrentSave.CountUpgrades()} installed,
}
}
-
+ [MultiplayerOnly]
[Namespace("shiftorium")]
public static class ShiftoriumCommands
{