Ignore colours for /team members, don't allow creating two teams with same name but different colours

This commit is contained in:
UnknownShadow200 2018-03-29 13:23:31 +11:00
parent c056e7ea70
commit 29d1ebf66a
2 changed files with 3 additions and 2 deletions

View File

@ -85,7 +85,8 @@ namespace MCGalaxy.Games {
public static Team Find(string name) {
foreach (Team team in Teams) {
if (name.CaselessEq(team.Name)) return team;
string teamName = Colors.Strip(team.Name);
if (name.CaselessEq(teamName)) return team;
}
return null;
}