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) Creates a newGeyserPermissioninstance. -
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) Creates a newGeyserPermissioninstance.- Parameters:
bedrockOnly- True if this permission requires the command source to be a bedrock playerplayerOnly- True if this permission requires the command source to be any playerpermission- The permission node that the command source must havemanager- The command manager to delegate permission checks to
-
-
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>
-