Package org.getspout.spoutapi.packet

Examples of org.getspout.spoutapi.packet.PacketWaypoint


  @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
  public void onEntityDeath(EntityDeathEvent event) {
    if (event.getEntity() instanceof SpoutPlayer) {
      Location l = event.getEntity().getLocation();
      ((SpoutPlayer)event.getEntity()).sendPacket(new PacketWaypoint(l.getX(), l.getY(), l.getZ(), "", true));
      Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(Spout.getInstance(), new PostDeath((SpoutCraftPlayer)event.getEntity()), 200);
    }
  }
View Full Code Here

TOP

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

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.