Package org.pircbotx

Examples of org.pircbotx.Channel


    if (args.length != 2){
      sender.sendMessage(ChatColor.RED + "Usage: /" + label + " ban <channel> <hostmask>");
      return;
    }
   
    Channel channel = plugin.bot.getChannel(args[0]);
   
    plugin.bot.ban(channel, args[1]);
   
    sender.sendMessage(ChatColor.GREEN + args[1] + " has been banned from " + args[0]);
  }
View Full Code Here


    if (args.length < 3){
      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

    if (args.length < 3){
      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

    if (args.length != 2){
      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

    if (args.length != 2){
      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.Channel

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.