Package net.bnubot.core

Examples of net.bnubot.core.CommandResponseCookie


  public void run(Connection source, BNetUser user, String param, String[] params, boolean whisperBack, Account commanderAccount, boolean superUser)
  throws Exception {
    if((params == null) || (params.length != 1))
      user.sendChat("Use: %trigger%invite <user>", whisperBack);
    else
      source.sendClanInvitation(new CommandResponseCookie(user, whisperBack), params[0]);
  }
View Full Code Here


      if((newRank < 1) || (newRank > 3))
        throw new InvalidUseException();

      // TODO: validate that params[0] is in the clan
      source.sendClanRankChange(
          CookieUtility.createCookie(new CommandResponseCookie(user, whisperBack)),
          params[0],
          newRank);
    } catch(InvalidUseException e) {
      user.sendChat("Use: %trigger%setrank <user> <rank(peon|grunt|shaman|1-3)>", whisperBack);
    }
View Full Code Here

TOP

Related Classes of net.bnubot.core.CommandResponseCookie

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.