mirror of
https://github.com/Shimeo98/DiscordWhitelisterSpigot.git
synced 2024-12-01 07:03:36 +01:00
made !whitelist command case insensitive
This commit is contained in:
parent
66ccc6f616
commit
4e44065fae
@ -3,7 +3,6 @@ version: 1.0.0
|
||||
author: Joe Shimell
|
||||
main: uk.co.angrybee.joe.DiscordWhitelister
|
||||
description: Discord whitelister bot.
|
||||
api-version: 1.13
|
||||
|
||||
permissions:
|
||||
discordbot:
|
||||
|
@ -78,7 +78,7 @@ public class ServerDiscordClient extends ListenerAdapter
|
||||
}
|
||||
}
|
||||
|
||||
if(messageContents.contains("!whitelist") && userHasPerms)
|
||||
if(messageContents.toLowerCase().contains("!whitelist") && userHasPerms)
|
||||
{
|
||||
String nameToWhitelist = messageContents;
|
||||
nameToWhitelist = nameToWhitelist.toLowerCase();
|
||||
|
Loading…
Reference in New Issue
Block a user