Interface BrigadierPermissionChecker<C>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@API(status=INTERNAL,
since="2.0.0")
public interface BrigadierPermissionChecker<C>
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhasPermission(@NonNull C sender, @NonNull org.incendo.cloud.permission.Permission permission) Returns whether the given Brigadiersenderhas the givenpermission.
-
Method Details
-
hasPermission
boolean hasPermission(@NonNull C sender, @NonNull org.incendo.cloud.permission.Permission permission) Returns whether the given Brigadiersenderhas the givenpermission.- Parameters:
sender- the brigadier senderpermission- the permission- Returns:
trueif thesenderhas thepermission, elsefalse
-