changed another part of the !whitelist command to be case insensitive

This commit is contained in:
JoeShimo 2019-08-01 16:11:17 +01:00
parent 4e44065fae
commit 63c09e9c3f

View File

@ -122,7 +122,7 @@ public class ServerDiscordClient extends ListenerAdapter
}
}
}
else if(messageContents.contains("!whitelist") && !userHasPerms && !messageReceivedEvent.getAuthor().isBot())
else if(messageContents.toLowerCase().contains("!whitelist") && !userHasPerms && !messageReceivedEvent.getAuthor().isBot())
{
channel.sendMessage(author.getAsMention() + ", you do not have permission to use this command").queue();
}