Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.baggot.plugin;
- import org.bukkit.Bukkit;
- import org.bukkit.Location;
- import org.bukkit.entity.ArmorStand;
- import org.bukkit.entity.EntityType;
- import org.bukkit.plugin.java.JavaPlugin;
- import org.bukkit.util.EulerAngle;
- public class Main extends JavaPlugin {
- @Override
- public void onEnable() {
- System.out.println("N WORD");
- //Bukkit.getPluginManager().registerEvents(this, this);
- spawnStand(new Location(Bukkit.getWorld("world"), 0, 74, 0));
- }
- private void spawnStand(Location location) {
- //232f,0f,0f
- ArmorStand stand = (ArmorStand) location.getWorld().spawnEntity(location, EntityType.ARMOR_STAND);
- //stand.setArms(true);
- // stand.setVisible(true);
- stand.setHeadPose(new EulerAngle(Math.toRadians(52), Math.toRadians(125), Math.toRadians(81)));
- // stand.setCustomNameVisible(true);
- // stand.setCustomName(ChatColor.AQUA + "friends");
- // stand.setHelmet(new ItemStack(Material.DIAMOND_HELMET));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement