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(e: PlayerJoinEvent)
Link copied to clipboard
fun onPlayerQuit(event: PlayerQuitEvent)
Link copied to clipboard

Updates the cache of players with direct message spy permission. Call this on player join/quit/permission change events.