Skip to content

Commit

Permalink
Add method to get the current player-visibillity setting
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlueF committed Aug 25, 2022
1 parent 4831537 commit 3bbf929
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/de/bluecolored/bluemap/api/WebApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ public interface WebApp {
*/
void setPlayerVisibility(UUID player, boolean visible);

/**
* Returns <code>true</code> if the given player is currently visible on the web-app.
* @see #setPlayerVisibility(UUID, boolean)
* @param player the UUID of the player
*/
boolean getPlayerVisibility(UUID player);

/**
* Creates an image-file with the given {@link BufferedImage} somewhere in the web-root, so it can be used in the web-app (e.g. for {@link Marker}-icons).
*
Expand Down

0 comments on commit 3bbf929

Please sign in to comment.