Skip to content
Xezard edited this page Jul 14, 2022 · 3 revisions

First you need to create a glow object: (You can use a builder for this)

Glow glow = Glow.builder()
                .color(ChatColor.GREEN)
                .name("test")
                .build();

You can add entity to glow object holders, to make this entity glow with glow object color. The glow of the entity will be seen by all viewers which the glow object contains:

glow.addHolders(entity);

To remove the glow of an entity, you can remove it from the glow object holders. The entity's glow will disappear for all viewers of the glow object:

glow.removeHolders(entity);

You can add a viewer to the glow object so that he immediately sees the glow on all holders of the glow object:

glow.display(player);

When the viewer is removed from the glow object, all holders of the glow object will no longer glow for removed viewer:

glow.hideFrom(player);
Clone this wiki locally