Class BukkitPermissionChecker

java.lang.Object
studio.mevera.imperat.BukkitPermissionChecker
All Implemented Interfaces:
studio.mevera.imperat.permissions.PermissionChecker<BukkitCommandSource>

public final class BukkitPermissionChecker extends Object implements studio.mevera.imperat.permissions.PermissionChecker<BukkitCommandSource>
  • Constructor Details

    • BukkitPermissionChecker

      public BukkitPermissionChecker()
  • Method Details

    • hasPermission

      public boolean hasPermission(@NotNull @NotNull BukkitCommandSource source, @Nullable @Nullable String permission)
      Specified by:
      hasPermission in interface studio.mevera.imperat.permissions.PermissionChecker<BukkitCommandSource>
      Parameters:
      source - the source of the command (console or other)
      permission - the permission
      Returns:
      whether this command source/sender has a specific permission