From 0c2367f5ab6f9a0c0986e2c41e244f1167af3bd2 Mon Sep 17 00:00:00 2001 From: filoghost Date: Sat, 20 Dec 2014 09:12:19 -0800 Subject: [PATCH] Updated Moving holograms (markdown) --- Moving-holograms.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Moving-holograms.md b/Moving-holograms.md index c2498e4..ee2cd1c 100644 --- a/Moving-holograms.md +++ b/Moving-holograms.md @@ -1,11 +1,11 @@ -Moving holograms it's really simple. Just use the `teleport(Location loc)` method, as fast as you want. Previously using the `setLocation(Location loc)` and `update()` methods was creating new entities every time, generating possible lag if used frequently. +Moving holograms it's really simple. Just use the `teleport(Location loc)` method.   - **Example**: a hologram that follows a player above his head for 5 seconds. ```java // Suppose that we have already a Player object called "player" -final Hologram hologram = HolographicDisplaysAPI.createHologram(plugin, player.getLocation().add(0.0, 2.0, 0.0), "Chat > Message"); +final Hologram hologram = HolographicDisplaysAPI.createHologram(plugin, player.getLocation().add(0.0, 2.0, 0.0)); +hologram.appendTextLine("Chat > Message"); new BukkitRunnable() {