Changeset 113 for binary-improvements/7dtd-server-fixes/src
- Timestamp:
- Jul 27, 2014, 11:30:15 AM (10 years ago)
- Location:
- binary-improvements/7dtd-server-fixes/src
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/CommandExtensions.cs
r109 r113 10 10 manager.m_GUIConsole.AddCommand (new GetTime (manager.m_GUIConsole)); 11 11 manager.m_GUIConsole.AddCommand (new Kill (manager.m_GUIConsole)); 12 manager.m_GUIConsole.AddCommand (new ListLandProtection (manager.m_GUIConsole)); 12 13 manager.m_GUIConsole.AddCommand (new ListPlayersExtended (manager.m_GUIConsole)); 14 manager.m_GUIConsole.AddCommand (new RemoveLandProtection (manager.m_GUIConsole)); 13 15 manager.m_GUIConsole.AddCommand (new Reply (manager.m_GUIConsole)); 14 16 manager.m_GUIConsole.AddCommand (new SayToPlayer (manager.m_GUIConsole)); -
binary-improvements/7dtd-server-fixes/src/TelnetCommands/Kill.cs
r112 r113 20 20 public override void Run (string[] _params) 21 21 { 22 m_Console.SendResult("Command \"kill\" is currently not implemented!"); 23 return; 24 /* 22 25 try { 23 26 if (_params.Length != 1) { … … 33 36 } 34 37 35 CommonMappingFunctions.GetEntityPlayer(ci).Kill(null); 38 EntityPlayer p = CommonMappingFunctions.GetEntityPlayer(ci); 39 p.Stats.Health.Value = 1; 40 p.Stats.SendAll(); 36 41 m_Console.SendResult ("Killed player " + _params[0]); 37 42 } catch (Exception e) { 38 43 Log.Out ("Error in Kill.Run: " + e); 39 } 44 }*/ 40 45 } 41 46 }
Note:
See TracChangeset
for help on using the changeset viewer.