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

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

Fixes

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