public string ScoreboardTeamsOptionColor(string teamName, ScoreboardTeamColors color) { if (string.IsNullOrWhiteSpace(teamName)) { throw new ArgumentNullException("teamName", "You must provide the team name."); } string cmd = string.Empty; cmd = string.Format(TonkaCommands.CMD_SCOREBOARD_TEAMS_OPT_COLOR, teamName, EnumUtils.GetEnumDefaultValue(color)); string result = SendCommand(cmd); return(result); }
public string ScoreboardTeamsOptionColor(string teamName, ScoreboardTeamColors color) { if (string.IsNullOrWhiteSpace(teamName)) { throw new ArgumentNullException("teamName", "You must provide the team name."); } string cmd = string.Empty; cmd = string.Format(TonkaCommands.CMD_SCOREBOARD_TEAMS_OPT_COLOR, teamName, EnumUtils.GetEnumDefaultValue(color)); string result = SendCommand(cmd); return result; }