9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2025-12-25 01:29:19 +00:00

expose locked players + add a method on OnlineUser

This commit is contained in:
evlad
2022-12-31 04:30:45 +03:00
parent 101e0c11d7
commit 71706bf9ae
5 changed files with 22 additions and 0 deletions

View File

@@ -165,4 +165,6 @@ public interface HuskSync {
*/
CompletableFuture<Boolean> reload();
Set<UUID> getLockedPlayers();
}

View File

@@ -236,4 +236,8 @@ public abstract class EventListener {
plugin.getRedisManager().close();
}
public final Set<UUID> getLockedPlayers() {
return this.lockedPlayers;
}
}

View File

@@ -371,4 +371,10 @@ public abstract class OnlineUser extends User {
});
}
/**
* Get if the player is locked
*
* @return the player's locked status
*/
public abstract boolean isLocked();
}