mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2025-02-16 20:11:19 +01:00
Updated Moving holograms (markdown)
parent
0c2367f5ab
commit
d53c2bafee
@ -4,7 +4,7 @@ Moving holograms it's really simple. Just use the `teleport(Location loc)` metho
|
||||
**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));
|
||||
final Hologram hologram = HologramsAPI.createHologram(plugin, player.getLocation().add(0.0, 2.0, 0.0));
|
||||
hologram.appendTextLine("Chat > Message");
|
||||
|
||||
new BukkitRunnable() {
|
||||
|
Loading…
Reference in New Issue
Block a user