Changeset 326 for binary-improvements/MapRendering/Commands
- Timestamp:
- Sep 4, 2018, 2:33:52 PM (6 years ago)
- Location:
- binary-improvements/MapRendering/Commands
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Commands/WebPermissionsCmd.cs
r325 r326 23 23 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) { 24 24 if (_params.Count >= 1) { 25 switch (_params [0].ToLower ()) { 26 case "add": 27 ExecuteAdd (_params); 28 break; 29 case "remove": 30 ExecuteRemove (_params); 31 break; 32 case "list": 33 ExecuteList (); 34 break; 35 default: 36 SdtdConsole.Instance.Output ("Invalid sub command \"" + _params [0] + "\"."); 37 return; 25 if (_params [0].EqualsCaseInsensitive ("add")) { 26 ExecuteAdd (_params); 27 } else if (_params [0].EqualsCaseInsensitive ("remove")) { 28 ExecuteRemove (_params); 29 } else if (_params [0].EqualsCaseInsensitive ("list")) { 30 ExecuteList (); 31 } else { 32 SdtdConsole.Instance.Output ("Invalid sub command \"" + _params [0] + "\"."); 38 33 } 39 34 } else { -
binary-improvements/MapRendering/Commands/WebTokens.cs
r325 r326 25 25 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) { 26 26 if (_params.Count >= 1) { 27 switch (_params [0].ToLower ()) { 28 case "add": 29 ExecuteAdd (_params); 30 break; 31 case "remove": 32 ExecuteRemove (_params); 33 break; 34 case "list": 35 ExecuteList (); 36 break; 37 default: 38 SdtdConsole.Instance.Output ("Invalid sub command \"" + _params [0] + "\"."); 39 return; 27 if (_params [0].EqualsCaseInsensitive ("add")) { 28 ExecuteAdd (_params); 29 } else if (_params [0].EqualsCaseInsensitive ("remove")) { 30 ExecuteRemove (_params); 31 } else if (_params [0].EqualsCaseInsensitive ("list")) { 32 ExecuteList (); 33 } else { 34 SdtdConsole.Instance.Output ("Invalid sub command \"" + _params [0] + "\"."); 40 35 } 41 36 } else {
Note:
See TracChangeset
for help on using the changeset viewer.