Package org.spout.vanilla.event.game

Examples of org.spout.vanilla.event.game.ServerListPingEvent


    if (PROTOCOL == null) {
      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

TOP

Related Classes of org.spout.vanilla.event.game.ServerListPingEvent

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.