package com.supremewars.entities;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerMoveEvent;
public class MoveEvent implements Listener {
@EventHandler
public void onPlayerMove(PlayerMoveEvent e) {
//Player player = e.getPlayer();
// player.getWorld().spawnEntity(player.getLocation(), EntityType.PIG);
Entity entity = Bukkit.getWorld("world").spawnEntity(new Location(Bukkit.getWorld("World"), 96.054, 66.49064, 238.478), EntityType.SKELETON);
entity.setGravity(false);
entity.setGlowing(true);
entity.setCustomName("Daddy Skeleton");
entity.setCustomNameVisible(true);
}
}