SpyPermissionManager

object SpyPermissionManager : Listener(source)

Manages spy permission cache for direct messages. Caches player references to avoid repeated lookups.

Functions

Link copied to clipboard
fun notifySpies(noticeText: () -> String, exclude: (Player) -> Boolean, message: () -> Component)

Sends a copy of a message to every online spy that exclude does not reject.

Link copied to clipboard
fun onPlayerJoin(event: PlayerJoinEvent)
Link copied to clipboard
fun onPlayerQuit(event: PlayerQuitEvent)
Link copied to clipboard

Rebuilds the cache from every online player.