private static void EventTeamSay_Command(CommandEventArgs e) { BaseGame Game = ((PlayerMobile)e.Mobile).CurrentEvent; if (Game != null && Game is BaseTeamGame) { BaseTeamGame TeamGame = Game as BaseTeamGame; BaseGameTeam team = TeamGame.GetTeam(e.Mobile); team.TeamMessage(e.Mobile, e.ArgString); } else { e.Mobile.SendAsciiMessage("You are not in a team event."); } }