Package org.geysermc.geyser.command
Class GeyserPermission
java.lang.Object
org.geysermc.geyser.command.GeyserPermission
- All Implemented Interfaces:
org.incendo.cloud.key.CloudKeyHolder<Void>,org.incendo.cloud.permission.Permission,org.incendo.cloud.permission.PredicatePermission<GeyserCommandSource>
public class GeyserPermission
extends Object
implements org.incendo.cloud.permission.PredicatePermission<GeyserCommandSource>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classBasic implementation of cloud'sPermissionResultthat delegates to the more informativeGeyserPermission.Result.Meta. -
Field Summary
Fields inherited from interface org.incendo.cloud.permission.Permission
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionGeyserPermission(boolean bedrockOnly, boolean playerOnly, String permission, org.incendo.cloud.CommandManager<GeyserCommandSource> manager) -
Method Summary
Modifier and TypeMethodDescription@NonNull org.incendo.cloud.key.CloudKey<Void>key()@NonNull GeyserPermission.ResulttestPermission(@NonNull GeyserCommandSource source) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.incendo.cloud.permission.Permission
and, and, or, or, permissionsMethods inherited from interface org.incendo.cloud.permission.PredicatePermission
isEmpty, permissionString
-
Constructor Details
-
GeyserPermission
public GeyserPermission(boolean bedrockOnly, boolean playerOnly, String permission, org.incendo.cloud.CommandManager<GeyserCommandSource> manager)
-
-
Method Details
-
testPermission
- Specified by:
testPermissionin interfaceorg.incendo.cloud.permission.PredicatePermission<GeyserCommandSource>
-
key
- Specified by:
keyin interfaceorg.incendo.cloud.key.CloudKeyHolder<Void>- Specified by:
keyin interfaceorg.incendo.cloud.permission.PredicatePermission<GeyserCommandSource>
-