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 Classes
    Modifier and Type
    Class
    Description
    final class 
    Basic implementation of cloud's PermissionResult that delegates to the more informative GeyserPermission.Result.Meta.
  • Field Summary

    Fields inherited from interface org.incendo.cloud.permission.Permission

    EMPTY
  • Constructor Summary

    Constructors
    Constructor
    Description
    GeyserPermission(boolean bedrockOnly, boolean playerOnly, String permission, org.incendo.cloud.CommandManager<GeyserCommandSource> manager)
    Creates a new GeyserPermission instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull org.incendo.cloud.key.CloudKey<Void>
    key()
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.incendo.cloud.permission.Permission

    and, and, or, or, permissions

    Methods 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 new GeyserPermission instance.
      Parameters:
      bedrockOnly - True if this permission requires the command source to be a bedrock player
      playerOnly - True if this permission requires the command source to be any player
      permission - The permission node that the command source must have
      manager - The command manager to delegate permission checks to
  • Method Details

    • testPermission

      public @NonNull GeyserPermission.Result testPermission(@NonNull GeyserCommandSource source)
      Specified by:
      testPermission in interface org.incendo.cloud.permission.PredicatePermission<GeyserCommandSource>
    • key

      public @NonNull org.incendo.cloud.key.CloudKey<Void> key()
      Specified by:
      key in interface org.incendo.cloud.key.CloudKeyHolder<Void>
      Specified by:
      key in interface org.incendo.cloud.permission.PredicatePermission<GeyserCommandSource>