Prevent sending requests to vanished players

This commit is contained in:
William committed 2022-08-25 13:47:58 +01:00
1 parent 6397d78767
commit 2152ca91f2
4 files changed
+24 -2

No files matched your search

@@ -104,6 +104,13 @@ public abstract class OnlineUser extends User {
*/
public abstract boolean isMoving();
/**
* Returns if the player is tagged as being "vanished" by a /vanish plugin
*
* @return {@code true} if the player is tagged as being "vanished" by a /vanish plugin; {@code false} otherwise
*/
public abstract boolean isVanished();
/**
* Get the maximum number of homes this user may set
*