Package net.lightstone.msg

Examples of net.lightstone.msg.KickMessage


    super(KickMessage.class, 0xFF);
  }

  @Override
  public KickMessage decode(ChannelBuffer buffer) {
    return new KickMessage(ChannelBufferUtils.readString(buffer));
  }
View Full Code Here


    String name = args[0];

    for (Player p : world.getPlayers()) {
      if (p.getName().equalsIgnoreCase(name)) {
        player.sendMessage("§eKicking " + p.getName());
        p.getSession().send(new KickMessage("Kicked by " + player.getName()));
        return;
      }
    }

    player.sendMessage("§eCan't find user " + name + ". No kick.");
View Full Code Here

   * {@link KickMessage} to be sent. When it has been delivered, the channel
   * is closed.
   * @param reason The reason for disconnection.
   */
  public void disconnect(String reason) {
    channel.write(new KickMessage(reason)).addListener(ChannelFutureListener.CLOSE);
  }
View Full Code Here

TOP

Related Classes of net.lightstone.msg.KickMessage

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.