fix: update team name checks to use constants for better readability

This commit is contained in:
Jakob Schulz
2026-05-20 22:38:23 +02:00
parent 5f5a98bcd6
commit 4a458f0e92
@@ -570,7 +570,7 @@ public class TeamCommand extends SWCommand {
return new TypeMapper<Team>() {
@Override
public Team map(Chatter sender, PreviousArguments previousArguments, String s) {
if ((s.equalsIgnoreCase("sw") || s.equalsIgnoreCase("steamwar"))) {
if ((s.equalsIgnoreCase(SW) || s.equalsIgnoreCase(STEAM_WAR))) {
return null;
}
return Team.get(s);