示例#1
0
        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);
        }
示例#2
0
		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;
		}