Skip to content

Commit

Permalink
Add updateHologram method into DHAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
d0by1 committed Feb 24, 2022
1 parent 292f16f commit 586ae1e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/eu/decentsoftware/holograms/api/DHAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,18 @@ public static void moveHologram(Hologram hologram, Location location) throws Ill
hologram.save();
}

/**
* Update the given hologram for all viewers.
*
* @param name The holograms name.
*/
public static void updateHologram(String name) {
Validate.notNull(name);

Hologram hologram = getHologram(name);
hologram.updateAll();
}

/**
* Remove a hologram by its name.
* <p>
Expand Down

0 comments on commit 586ae1e

Please sign in to comment.