Examples of MCCraftPacket0KeepAlive


Examples of org.getspout.spout.packet.standard.MCCraftPacket0KeepAlive

   
    ++this.updateCounter;
   
    // Keeps client connected while precache completes.
    if (!this.precachingComplete && this.updateCounter % 20 == 0) {
      sendImmediatePacket(new MCCraftPacket0KeepAlive());
    }

    // Do this last!
    getPlayerConnection().syncFlushPacketQueue();
  }
View Full Code Here

Examples of org.getspout.spout.packet.standard.MCCraftPacket0KeepAlive

    File preCache = PrecacheManager.getPluginCacheZip(plugin);
    if (preCache.exists()) {
      SpoutPlayer player = SpoutManager.getPlayerFromId(playerId);
      if (player != null) {
        player.sendImmediatePacket(new MCCraftPacket0KeepAlive());
        player.sendPacket(new PacketSendPrecache(plugin, preCache));
      }
    }
  }
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.