Package org.getspout.spout.packet.standard

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


    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

Related Classes of org.getspout.spout.packet.standard.MCCraftPacket0KeepAlive

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.