hasPermission

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.

This method will use Player.hasPermission if the player is online and otherwise use access the offline permission cache, which accesses the registered PermissionIntegrations asynchronously.


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

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

This method will use Player.hasPermission if the player is online and otherwise use access the offline permission cache, which accesses the registered PermissionIntegrations asynchronously.