source: binary-improvements/7dtd-server-fixes/src/CommandExtensions.cs@ 173

Last change on this file since 173 was 163, checked in by alloc, 10 years ago

fixes

File size: 1.2 KB
Line 
1using AllocsFixes.CustomCommands;
2using System;
3using System.Collections.Generic;
4
5namespace AllocsFixes
6{
7 public class CommandExtensions
8 {
9 public static void InitCommandExtensions (GameManager manager)
10 {
11 try {
12 ConsoleSdtd cons = manager.m_GUIConsole;
13 cons.AddCommand (new CreativeMenu (cons));
14 cons.AddCommand (new EnableRendering (cons));
15 cons.AddCommand (new GetGamePrefs (cons));
16 cons.AddCommand (new GetTime (cons));
17 cons.AddCommand (new Give (cons));
18 cons.AddCommand (new Kill (cons));
19 cons.AddCommand (new ListItems (cons));
20 cons.AddCommand (new ListKnownPlayers (cons));
21 cons.AddCommand (new ListLandProtection (cons));
22 cons.AddCommand (new ListPlayersExtended (cons));
23 cons.AddCommand (new RemoveLandProtection (cons));
24 cons.AddCommand (new RenderMap (cons));
25 cons.AddCommand (new Reply (cons));
26 cons.AddCommand (new SayToPlayer (cons));
27 cons.AddCommand (new SetTimeReal (cons));
28 cons.AddCommand (new ShowInventory (cons));
29 cons.AddCommand (new TeleportPlayer (cons));
30 cons.AddCommand (new AllocsFixes.CustomCommands.Version (cons));
31 } catch (Exception e) {
32 Log.Out ("Error registering custom commands: " + e);
33 }
34 }
35 }
36}
Note: See TracBrowser for help on using the repository browser.