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;
}
String name = StringUtils.join(args, " ", 2, args.length);
if (name.equalsIgnoreCase("none"))
String name = StringUtils.join(args, " ", 2, args.length).toLowerCase();
if (name.equals("none"))
{
for (GuildRank gr : guild.getRanks())
{