Package org.getspout.spoutapi.packet

Examples of org.getspout.spoutapi.packet.PacketBlockData


    org.getspout.spoutapi.material.Block block = MaterialData.getBlock(id, data);
    if (block != null) {
      cachedBlockData = null;
      HashSet<org.getspout.spoutapi.material.Block> toUpdate = new HashSet<org.getspout.spoutapi.material.Block>(1);
      toUpdate.add(block);
      SpoutPacket updatePacket = new PacketBlockData(toUpdate);
      for (SpoutPlayer player : SpoutManager.getOnlinePlayers()) {
        if (player.isSpoutCraftEnabled()) {
          player.sendPacket(updatePacket);
        }
      }
View Full Code Here


    ((SimpleBiomeManager)SpoutManager.getBiomeManager()).onPlayerJoin(player);
    ((SimpleKeyBindingManager)SpoutManager.getKeyBindingManager()).onPlayerJoin(player);
    player.sendPacket(new PacketAllowVisualCheats(PermHandler.allowSkyCheat(player),PermHandler.forceSkyCheat(player),PermHandler.showSkyCheat(player),PermHandler.allowClearWaterCheat(player),PermHandler.forceClearWaterCheat(player),PermHandler.showClearWaterCheat(player),PermHandler.allowStarsCheat(player),PermHandler.forceStarsCheat(player),PermHandler.showStarsCheat(player),PermHandler.allowWeatherCheat(player),PermHandler.forceWeatherCheat(player),PermHandler.showWeatherCheat(player),PermHandler.allowTimeCheat(player),PermHandler.allowCoordsCheat(player),PermHandler.allowEntityLabelCheat(player),PermHandler.allowVoidFogCheat(player),PermHandler.forceVoidFogCheat(player),PermHandler.showVoidFogCheat(player),PermHandler.allowFlightSpeedCheat(player)));
    player.updatePermissions();
    PrecacheManager.onPlayerJoin(player);
    player.sendPacket(new PacketBlockData(SpoutManager.getMaterialManager().getModifiedBlocks()));
    Bukkit.getServer().getPluginManager().callEvent(new SpoutCraftEnableEvent(player));
    ((SpoutCraftPlayer)player).updateWaypoints();
  }
View Full Code Here

TOP

Related Classes of org.getspout.spoutapi.packet.PacketBlockData

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.