Jps21
4/21/2019 - 1:09 PM

Entities

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);

    }

}
package com.supremewars.entities;

import org.bukkit.plugin.java.JavaPlugin;

public final class Entities extends JavaPlugin {

    @Override
    public void onEnable() {
        // Plugin startup logic

        getServer().getPluginManager().registerEvents(new MoveEvent(), this);

    }

    @Override
    public void onDisable() {
        // Plugin shutdown logic
    }
}
name: Entities
version: ${project.version}
main: com.supremewars.entities.Entities
api-version: 1.13
authors: [JackScott]
description: Entities
website: supremewars.com