mirror of
https://github.com/Shimeo98/DiscordWhitelisterSpigot.git
synced 2024-12-01 07:03:36 +01:00
specify name instead of just saying 'user' when getting a response from the remove command
This commit is contained in:
parent
b91fc8bb4f
commit
0b11bcc84f
@ -361,7 +361,7 @@ public class ServerDiscordClient extends ListenerAdapter
|
||||
|
||||
if(!checkWhitelistJSON(whitelistJSON, finalNameToRemove))
|
||||
{
|
||||
channel.sendMessage(author.getAsMention() + ", user is not on the whitelist!").queue();
|
||||
channel.sendMessage(author.getAsMention() + ", `" + finalNameToRemove + "` is not on the whitelist!").queue();
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -380,8 +380,6 @@ public class ServerDiscordClient extends ListenerAdapter
|
||||
DiscordWhitelister.getRemovedList().set(finalNameToRemove, author.getId());
|
||||
DiscordWhitelister.getRemovedList().save(DiscordWhitelister.getRemovedListFile().getPath());
|
||||
}
|
||||
|
||||
//channel.sendMessage("test <@" + DiscordWhitelister.getRemovedList().get(finalNameToRemove) + ">").queue();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user