PermissionManager

A permission manager that can retrieve permissions for offline players via registered PermissionIntegrations.

OfflinePlayer permissions will be cached for 30 minutes after the last access and commonly accessed permissions will be refreshed every minute.

Functions

Link copied to clipboard
fun hasPermission(world: World, player: UUID, permission: String): CompletableFuture<Boolean>

Checks whether the player under the given UUID has the given permission in the given world.

fun hasPermission(world: World, player: OfflinePlayer, permission: String): CompletableFuture<Boolean>

Checks whether the given player has the given permission in the given world.