-
Notifications
You must be signed in to change notification settings - Fork 4
Holograms
Alexander edited this page May 4, 2019
·
1 revision
Plugin: https://www.spigotmc.org/resources/holograms.4924/
//Get HologramManager
holograms.HologramManager();
//Creating a new hologram
holograms.Create("TestHologram", player.getLocation());
//Getting our hologram that we just created
var hologram = holograms.Get("TestHologram");
//Moving our hologram to our player
holograms.Move(hologram, player.getLocation());
//Hiding it
holograms.Hide(hologram);
//Showing it again
holograms.Show(hologram);
//Checking if its visible (Return a Boolean)
holograms.IsVisible(hologram);
//Adding a line
holograms.AddTextLine(hologram, "New Line right here! :O");
//Remove a line
holograms.RemoveLine(hologram, 0); //Starts at 0
//Seting a line
holograms.SetLine(hologram, 0, "A new line xd.")