From 99eede4118bc247a9ca2e6f7329bf1b9fea5b52d Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 2 May 2017 17:11:31 -0400 Subject: pong highscores are semi-fixed --- ShiftOS_TheReturn/UniteTestCommands.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ShiftOS_TheReturn/UniteTestCommands.cs') 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 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")] -- cgit v1.2.3