SpyPermissionManager

object SpyPermissionManager : Listener(source)

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

Functions

Link copied to clipboard

Gets all players with spy permission as a map of UUID to Player.

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.