Use toLowerCase instead

This commit is contained in:
Nathan Curran 2021-03-07 19:17:44 +11:00
parent c9972c2879
commit a0075b2163
No known key found for this signature in database
GPG key ID: B3A964B30C2E56B8

View file

@ -56,8 +56,8 @@ public class SetRankSubcommand extends Common implements CommandExecutor
return true; return true;
} }
String name = StringUtils.join(args, " ", 2, args.length); String name = StringUtils.join(args, " ", 2, args.length).toLowerCase();
if (name.equalsIgnoreCase("none")) if (name.equals("none"))
{ {
for (GuildRank gr : guild.getRanks()) for (GuildRank gr : guild.getRanks())
{ {