forked from SteamWar/SteamWar
fix: update team name checks to use constants for better readability
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user