Package org.spout.vanilla.protocol.msg.player.conn

Examples of org.spout.vanilla.protocol.msg.player.conn.PlayerKickMessage


    return buffer;
  }

  @Override
  public Message getKickMessage(String message) {
    return new PlayerKickMessage(message);
  }
View Full Code Here


      PROTOCOL = VanillaPlugin.getInstance().getDescription().getData("protocol");
      MC_VERSION = VanillaPlugin.getInstance().getDescription().getVersion().trim().split(" ")[0];
      MOTD = VanillaConfiguration.MOTD.getString();
    }
    ServerListPingEvent event = VanillaPlugin.getInstance().getEngine().getEventManager().callEvent(new ServerListPingEvent(session.getAddress().getAddress(), MOTD, server.getOnlinePlayers().length, server.getMaxPlayers()));
    session.send(new PlayerKickMessage('\u00A7' + "1" + '\u0000' + PROTOCOL + '\u0000' + MC_VERSION + '\u0000' + event.getMessage()));
  }
View Full Code Here

    super(PlayerKickMessage.class, 0xFF);
  }

  @Override
  public PlayerKickMessage decode(ByteBuf buffer) {
    return new PlayerKickMessage(VanillaByteBufUtils.readString(buffer));
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.protocol.msg.player.conn.PlayerKickMessage

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.