Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class HappyHologram {
- /*Player p = (Player) sender;
- HologramManager manager = new HologramManager(p.getLocation(), args[0].replaceAll("_", " "));
- manager.spawnHologram(Integer.parseInt(args[1]));
- p.sendMessage("§5HolographicDisplays §7>> §6Object summoned!");*/
- /* public static Location location;
- private final static double distance = 0.25D;
- private static String text;
- public HappyHologram( Location location, String message ) {
- this.location = location;
- this.text = message;
- }
- public static void spawnHologram( int BlockHeight ) {
- WorldServer worldServer = (( CraftWorld ) location.getWorld() ).getHandle();
- EntityArmorStand armor = new EntityArmorStand( worldServer );
- armor.setLocation( location.getX(), location.getY() + (BlockHeight * distance), location.getZ(), 0, 0 );
- armor.setCustomName( text );
- armor.setCustomNameVisible( true );
- armor.setInvisible(true);
- ((CraftWorld) location.getWorld()).getHandle().addEntity(armor);
- }*/
- }
Advertisement
Add Comment
Please, Sign In to add comment