Delegate CommandRequirement
Namespace: Void.Minecraft.Commands.Brigadier.Tree
Assembly: Void.Minecraft.dll
Determines asynchronously whether a command source may use a node.
public delegate ValueTask<bool> CommandRequirement(ICommandSource source, CancellationToken cancellationToken)Parameters
source ICommandSource
The command source.
cancellationToken CancellationToken
A token that may cancel the check.
Returns
Whether access is permitted.