Skip to content

Commit 3bbf929

Browse files
committed
Add method to get the current player-visibillity setting
1 parent 4831537 commit 3bbf929

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/de/bluecolored/bluemap/api/WebApp.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ public interface WebApp {
5151
*/
5252
void setPlayerVisibility(UUID player, boolean visible);
5353

54+
/**
55+
* Returns <code>true</code> if the given player is currently visible on the web-app.
56+
* @see #setPlayerVisibility(UUID, boolean)
57+
* @param player the UUID of the player
58+
*/
59+
boolean getPlayerVisibility(UUID player);
60+
5461
/**
5562
* 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).
5663
*

0 commit comments

Comments
 (0)