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:
@@ -165,4 +165,6 @@ public interface HuskSync {
|
||||
*/
|
||||
CompletableFuture<Boolean> reload();
|
||||
|
||||
Set<UUID> getLockedPlayers();
|
||||
|
||||
}
|
||||
|
||||
@@ -236,4 +236,8 @@ public abstract class EventListener {
|
||||
plugin.getRedisManager().close();
|
||||
}
|
||||
|
||||
public final Set<UUID> getLockedPlayers() {
|
||||
return this.lockedPlayers;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user