aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/UniteTestCommands.cs
diff options
context:
space:
mode:
authorAShifter <[email protected]>2017-05-02 19:43:15 -0600
committerAShifter <[email protected]>2017-05-02 19:43:15 -0600
commitb06801028acc3b3da80ef5077abe8f0baaa82dac (patch)
tree5c65cccdd17f8d89125841663749cbaf970ed52a /ShiftOS_TheReturn/UniteTestCommands.cs
parentbbb21a1b32ff2642eb3f9804ef653e57a8be7e41 (diff)
parent8381c825b1c6d4d47af23e9461ece4f4a1f88cc5 (diff)
downloadshiftos_thereturn-b06801028acc3b3da80ef5077abe8f0baaa82dac.tar.gz
shiftos_thereturn-b06801028acc3b3da80ef5077abe8f0baaa82dac.tar.bz2
shiftos_thereturn-b06801028acc3b3da80ef5077abe8f0baaa82dac.zip
Merge remote-tracking branch 'refs/remotes/shiftos-game/master'
Diffstat (limited to 'ShiftOS_TheReturn/UniteTestCommands.cs')
-rw-r--r--ShiftOS_TheReturn/UniteTestCommands.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/UniteTestCommands.cs b/ShiftOS_TheReturn/UniteTestCommands.cs
index 37ab1ee..7a83e44 100644
--- a/ShiftOS_TheReturn/UniteTestCommands.cs
+++ b/ShiftOS_TheReturn/UniteTestCommands.cs
@@ -10,6 +10,16 @@ namespace ShiftOS.Engine
[Namespace("unite")]
public static class UniteTestCommands
{
+ [Command("setdisplayname")]
+ [RequiresArgument("name")]
+ public static bool SetDisplayName(Dictionary<string, object> args)
+ {
+ string dname = args["name"].ToString();
+ var unite = new ShiftOS.Unite.UniteClient("http://getshiftos.ml", SaveSystem.CurrentSave.UniteAuthToken);
+ unite.SetDisplayName(dname);
+ return true;
+ }
+
[Command("login")]
[RequiresArgument("username")]
[RequiresArgument("password")]