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.
-
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<@Nullable Consumer<MutablePermissionContext>> prepareOfflinePlayer(PermissionContext context, net.minecraft.server.MinecraftServer server) A callback run before providing aPermissionContextfor offline player checks.
-
Method Details
-
prepareOfflinePlayer
CompletableFuture<@Nullable Consumer<MutablePermissionContext>> prepareOfflinePlayer(PermissionContext context, net.minecraft.server.MinecraftServer server) A callback run before providing aPermissionContextfor 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.
-