Examples of kick()


Examples of lineage2.gameserver.model.Player.kick()

        ThreadPoolManager.getInstance().schedule(new RunnableImpl()
        {
          @Override
          public void runImpl()
          {
            player.kick();
          }
        }, 500);
        break;
    }
    return true;
View Full Code Here

Examples of lineage2.gameserver.model.Player.kick()

    }
    if (activeChar.getClan() != null)
    {
      activeChar.getClan().startNotifyClanLogOut(activeChar);
    }
    activeChar.kick();
  }
}
View Full Code Here

Examples of net.canarymod.api.entity.living.humanoid.Player.kick()

        ban.setIp(p.getIP());
        ban.setIsIpBan(true);
        Canary.bans().issueBan(ban);
        Canary.hooks().callHook(new BanHook(p, p.getIP(), null, reason, timestamp));
        caller.notice(Translator.translateAndFormat("ipban banned", cmd[1]));
        p.kick(reason);
    }

    private void player(Player caller, String[] cmd) {
        if (cmd.length < 2) {
            Canary.help().getHelp(caller, "ipban");
View Full Code Here

Examples of net.canarymod.api.entity.living.humanoid.Player.kick()

        ban.setIp(p.getIP());
        ban.setIsIpBan(true);
        Canary.bans().issueBan(ban);
        Canary.hooks().callHook(new BanHook(p, p.getIP(), caller, reason, timestamp));
        caller.notice(Translator.translateAndFormat("ipban banned", cmd[1]));
        p.kick(reason);
    }

}
View Full Code Here

Examples of net.canarymod.api.entity.living.humanoid.Player.kick()

        if (p != null) {
            ban.setSubject(p.getName());
            Canary.bans().issueBan(ban);
            Canary.hooks().callHook(new BanHook(p, p.getIP(), null, reason, timestamp));
            caller.notice(Translator.translateAndFormat("ban banned", p.getName()));
            p.kick(reason);
        }
        else {
            ban.setSubject(cmd[1]);
            Canary.bans().issueBan(ban);
            Canary.hooks().callHook(new BanHook(null, "xxx.xxx.xxx.xxx", null, reason, timestamp));
View Full Code Here

Examples of net.canarymod.api.entity.living.humanoid.Player.kick()

        if (p != null) {
            ban.setSubject(p.getName());
            Canary.bans().issueBan(ban);
            Canary.hooks().callHook(new BanHook(p, p.getIP(), (caller instanceof Player) ? (Player)caller : null, reason, timestamp));
            caller.notice(Translator.translateAndFormat("ban banned", p.getName()));
            p.kick(reason);
        }
        else {
            ban.setSubject(cmd[1]);
            Canary.bans().issueBan(ban);
            Canary.hooks().callHook(new BanHook(null, "xxx.xxx.xxx.xxx", (caller instanceof Player) ? (Player)caller : null, reason, timestamp));
View Full Code Here

Examples of org.spout.api.entity.Player.kick()

    Human human = holder.get(Human.class);
    if (human == null) {
      return;
    }
    if (human.isSurvival()) {
      holder.kick("Attempted to use the creative inventory while on survival.");
      return;
    }

    Window window = holder.get(WindowHolder.class).getActiveWindow();
    if (message.get() == null) {
View Full Code Here

Examples of silvertrout.Channel.kick()

          Channel chan = getNetwork().getChannel(parts[2]);
          User    usr  = getNetwork().getUser(parts[3]);
          String  rest = ""; if(parts.length > 4)rest = parts[4];

          if(cmd.equals("!kick")) {
            chan.kick(usr, rest);
          } else if(cmd.equals("!op")) {
            chan.giveOp(usr);
          } else if(cmd.equals("!deop")) {
            chan.deOp(usr);
          } else if(cmd.equals("!voice")) {
View Full Code Here

Examples of simpleserver.Server.kick()

        player.addTMessage(Color.GRAY, "IP Address %s has been banned!", arguments[0]);
        server.adminLog("User " + player.getName() + " banned IP:\t "
            + arguments[0]);
      } else {
        server.ipBans.addBan(p.getIPAddress());
        server.kick(p.getName(), t("IP Banned!"));
        String msg = t("Player %s has been IP banned!", p.getName());
        server.runCommand("say", msg);
        server.adminLog("User " + player.getName() + " banned ip:\t "
            + arguments[0] + "\t(" + p.getName() + ")");
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.