Madame is now limited at Over18

This commit is contained in:
BrokenFire 2017-02-17 08:17:20 +01:00
parent fdc11cccce
commit 26881e3c60

View File

@ -23,7 +23,7 @@ public class Madame implements Commande{
@Override
public void action(String[] args, MessageReceivedEvent event) {
if(!event.getTextChannel().getName().equals("le_cours")) {
if(event.getTextChannel().getName().equals("over18")) {
Redirection redirect = new Redirection();
boolean success=false;
boolean error=false;
@ -50,7 +50,7 @@ public class Madame implements Commande{
}
else
{
event.getTextChannel().sendMessage(event.getAuthor().getAsMention()+"\n:warning: **__Channel règlementé!__**:warning: ").queue();
event.getTextChannel().sendMessage(event.getAuthor().getAsMention()+"\n:warning: **__Channel règlementé! Go sur over18!__**:warning: ").queue();
logger.warn("Erreur chanel.");
}