mirror of
https://github.com/Shimeo98/DiscordWhitelisterSpigot.git
synced 2024-11-28 21:55:31 +01:00
changed another part of the !whitelist command to be case insensitive
This commit is contained in:
parent
4e44065fae
commit
63c09e9c3f
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user