Package org.pircbotx

Examples of org.pircbotx.User


    }
  }
 
  @Override
  public void onJoin(JoinEvent<SimpleIRCBot> event){
    User user = event.getUser();
    String sender = user.getNick();
   
    if (sender.equals(event.getBot().getNick())){
      return;
    }
   
View Full Code Here


    plugin.server.broadcastMessage(ChatColor.YELLOW + playerName + " has joined the chat");
  }
 
  @Override
  public void onPart(PartEvent<SimpleIRCBot> event){
    User user = event.getUser();
    String sender = user.getNick();
   
    if (sender.equals(event.getBot().getNick())){
      return;
    }
   
View Full Code Here

    plugin.server.broadcastMessage(ChatColor.YELLOW + playerName + " has left the chat");
  }
 
  @Override
  public void onKick(KickEvent<SimpleIRCBot> event){
    User user = event.getRecipient();
    String sender = user.getNick();
   
    if (sender.equals(event.getBot().getNick())){
      return;
    }
   
View Full Code Here

      sender.sendMessage(ChatColor.RED + "Usage: /" + label + " kick <channel> <nick> <reason>");
      return;
    }
   
    Channel channel = plugin.bot.getChannel(args[0]);
    User user = plugin.bot.getUser(args[1]);
   
    if (args.length > 2){
      String reason = args[2];
     
      for (int i = 3; i < args.length; ++i){
View Full Code Here

      sender.sendMessage(ChatColor.RED + "Usage: /" + label + " op <channel> <nick>");
      return;
    }
   
    Channel channel = plugin.bot.getChannel(args[0]);
    User user = plugin.bot.getUser(args[1]);
   
    plugin.bot.op(channel, user);
   
    sender.sendMessage(ChatColor.GREEN + args[1] + " has been oped in " + args[0]);
  }
View Full Code Here

      sender.sendMessage(ChatColor.RED + "Usage: /" + label + " deop <channel> <nick>");
      return;
    }
   
    Channel channel = plugin.bot.getChannel(args[0]);
    User user = plugin.bot.getUser(args[1]);
   
    plugin.bot.deOp(channel, user);
   
    sender.sendMessage(ChatColor.GREEN + args[1] + " has been deoped in " + args[0]);
  }
View Full Code Here

      sender.sendMessage(ChatColor.RED + "Usage: /" + label + " voice <channel> <nick>");
      return;
    }
   
    Channel channel = plugin.bot.getChannel(args[0]);
    User user = plugin.bot.getUser(args[1]);
   
    plugin.bot.voice(channel, user);
   
    sender.sendMessage(ChatColor.GREEN + args[1] + " has been given voice in " + args[0]);
  }
View Full Code Here

      sender.sendMessage(ChatColor.RED + "Usage: /" + label + " devoice <channel> <nick>");
      return;
    }
   
    Channel channel = plugin.bot.getChannel(args[0]);
    User user = plugin.bot.getUser(args[1]);
   
    plugin.bot.deVoice(channel, user);
   
    sender.sendMessage(ChatColor.GREEN + args[1] + " no longer has voice in " + args[0]);
  }
View Full Code Here

TOP

Related Classes of org.pircbotx.User

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.