Add method to get the current player-visibillity setting

This commit is contained in:
Lukas Rieger (Blue) 2022-08-25 15:45:57 +02:00
parent 4831537059
commit 3bbf92965d
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2
1 changed files with 7 additions and 0 deletions

View File

@ -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).
*