- Timestamp:
- Aug 26, 2014, 1:08:25 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/CommandExtensions.cs
r114 r128 7 7 { 8 8 try { 9 manager.m_GUIConsole.AddCommand (new CreativeMenu (manager.m_GUIConsole)); 9 10 manager.m_GUIConsole.AddCommand (new GetGamePrefs (manager.m_GUIConsole)); 10 11 manager.m_GUIConsole.AddCommand (new GetTime (manager.m_GUIConsole)); 12 manager.m_GUIConsole.AddCommand (new Give (manager.m_GUIConsole)); 11 13 manager.m_GUIConsole.AddCommand (new Kill (manager.m_GUIConsole)); 14 manager.m_GUIConsole.AddCommand (new ListItems (manager.m_GUIConsole)); 12 15 manager.m_GUIConsole.AddCommand (new ListLandProtection (manager.m_GUIConsole)); 13 16 manager.m_GUIConsole.AddCommand (new ListPlayersExtended (manager.m_GUIConsole)); 14 17 manager.m_GUIConsole.AddCommand (new RemoveLandProtection (manager.m_GUIConsole)); 18 manager.m_GUIConsole.AddCommand (new RenderMap (manager.m_GUIConsole)); 15 19 manager.m_GUIConsole.AddCommand (new Reply (manager.m_GUIConsole)); 16 20 manager.m_GUIConsole.AddCommand (new SayToPlayer (manager.m_GUIConsole)); … … 21 25 Log.Out ("Error registering custom commands: " + e); 22 26 } 23 /*24 try {25 List<ConsoleCommand> commands = manager.m_GUIConsole.commands;26 foreach (ConsoleCommand c in commands) {27 string name = string.Empty;28 foreach (string cname in c.Names()) {29 if (cname.Length > 0) {30 if (name.Length > 0)31 name += ", ";32 name += cname;33 }34 }35 name += " => " + c.Description();36 Log.Out (name);37 }38 } catch (Exception e) {39 Log.Out ("Error listing commands: " + e);40 }41 */42 27 } 43 28 }
Note:
See TracChangeset
for help on using the changeset viewer.