Interface PermissionEvents.PrepareOfflinePlayer

Enclosing class:
PermissionEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface PermissionEvents.PrepareOfflinePlayer
  • Method Details

    • prepareOfflinePlayer

      CompletableFuture<@Nullable Consumer<MutablePermissionContext>> prepareOfflinePlayer(PermissionContext context, net.minecraft.server.MinecraftServer server)
      A callback run before providing a PermissionContext for offline player checks. Should be used to preload the relevant permission data if needed.
      Parameters:
      context - context to load.
      server - server for which this player is resolved against.
      Returns:
      a completable future indicating that permission context is ready to be checked against, with optional callback to modify the context.