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

Last change on this file since 138 was 130, checked in by alloc, 10 years ago

Fixes

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