Package org.getspout.spout

Examples of org.getspout.spout.SpoutPlayerConnection


  }

  @Override
  public void handle(Connection connection) {
    if (connection instanceof SpoutPlayerConnection) {
      SpoutPlayerConnection handler = (SpoutPlayerConnection) connection;
      SpoutPlayer player = SpoutManager.getPlayerFromId(handler.getPlayer().getEntityId());
      if (player != null) {
        if (success) {
          packet.run(player.getEntityId());
        } else if (packet != null) {
          packet.failure(player.getEntityId());
View Full Code Here


    CraftPlayer cp = (CraftPlayer) player;
    CraftServer server = (CraftServer) Bukkit.getServer();
    if (!(cp.getHandle().playerConnection instanceof SpoutPlayerConnection)) {
      PlayerConnection oldHandler = cp.getHandle().playerConnection;
      Location loc = player.getLocation();
      SpoutPlayerConnection handler = new SpoutPlayerConnection(MinecraftServer.getServer(), cp.getHandle().playerConnection.networkManager, cp.getHandle());
      /*for (Object o : cp.getHandle().playerChunkCoordIntPairs) {
      ChunkCoordIntPair c = (ChunkCoordIntPair) o;
      handler.addActiveChunk(c);
      }*/
      handler.a(loc.getX(), loc.getY(), loc.getZ(), loc.getYaw(), loc.getPitch());
      cp.getHandle().playerConnection = handler;
      INetworkManager nm = cp.getHandle().playerConnection.networkManager;
      setPlayerConnection(nm, cp.getHandle().playerConnection);
      Field handlerList = null;
      try {
View Full Code Here

TOP

Related Classes of org.getspout.spout.SpoutPlayerConnection

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.