private string GetCommandInfo(IPlayer player, string command) { MethodBase mb = typeof(Tickets).GetMethod(command + "Cmd", BindingFlags.NonPublic | BindingFlags.Instance); if (mb == null) { return(string.Empty); } string[] commands = CommandInfo.GetCommands(player, mb); for (int i = 0; i < commands.Length; i++) { commands[i] = (player.IsServer || player.LastCommand == CommandType.Console ? $"{command} " : $"/{command} ") + commands[i]; } return(string.Join(Environment.NewLine, commands)); }