geforkt von SteamWar/BungeeCore
Teamname case ignore
Dieser Commit ist enthalten in:
Ursprung
d5a8b275d0
Commit
33273be4fd
@ -36,12 +36,12 @@ public class Team {
|
||||
|
||||
public static Team get(String name){
|
||||
for(Team team : teamCache)
|
||||
if(team.teamName.equals(name))
|
||||
if(team.teamName.equalsIgnoreCase(name))
|
||||
return team;
|
||||
for(Team team : teamCache)
|
||||
if(team.teamKuerzel.equals(name))
|
||||
if(team.teamKuerzel.equalsIgnoreCase(name))
|
||||
return team;
|
||||
return load(sql.select("SELECT * FROM Team WHERE TeamName = '" + sql.disarmString(name) + "' OR TeamKuerzel = '" + sql.disarmString(name) + "'"));
|
||||
return load(sql.select("SELECT * FROM Team WHERE lower(TeamName) = '" + sql.disarmString(name).toLowerCase() + "' OR lower(TeamKuerzel) = '" + sql.disarmString(name).toLowerCase() + "'"));
|
||||
}
|
||||
|
||||
public static void clearCache(){
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren