diff options
Diffstat (limited to 'tools/mass test client/Commands/System/SetMasterKeyCommand.cs')
-rw-r--r-- | tools/mass test client/Commands/System/SetMasterKeyCommand.cs | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/tools/mass test client/Commands/System/SetMasterKeyCommand.cs b/tools/mass test client/Commands/System/SetMasterKeyCommand.cs deleted file mode 100644 index 1fa6336..0000000 --- a/tools/mass test client/Commands/System/SetMasterKeyCommand.cs +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using libsecondlife; | ||
5 | using libsecondlife.Packets; | ||
6 | |||
7 | namespace libsecondlife.TestClient | ||
8 | { | ||
9 | public class SetMasterKeyCommand : Command | ||
10 | { | ||
11 | public DateTime Created = DateTime.Now; | ||
12 | |||
13 | public SetMasterKeyCommand(TestClient testClient) | ||
14 | { | ||
15 | Name = "setMasterKey"; | ||
16 | Description = "Sets the key of the master user. The master user can IM to run commands."; | ||
17 | } | ||
18 | |||
19 | public override string Execute(string[] args, LLUUID fromAgentID) | ||
20 | { | ||
21 | Client.MasterKey = LLUUID.Parse(args[0]); | ||
22 | |||
23 | foreach (Avatar av in Client.AvatarList.Values) | ||
24 | { | ||
25 | if (av.ID == Client.MasterKey) | ||
26 | { | ||
27 | Client.Self.InstantMessage(av.ID, "You are now my master. IM me with \"help\" for a command list."); | ||
28 | break; | ||
29 | } | ||
30 | } | ||
31 | |||
32 | return "Master set to " + Client.MasterKey; | ||
33 | } | ||
34 | } | ||
35 | } | ||