mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Ignore colours for /team members, don't allow creating two teams with same name but different colours
This commit is contained in:
parent
c056e7ea70
commit
29d1ebf66a
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user