Class Permissions

java.lang.Object
de.z0rdak.yawp.api.permission.Permissions

public final class Permissions extends Object
  • Field Details

  • Method Details

    • get

      public static Permissions get()
    • getGroups

      public static List<String> getGroups(IProtectedRegion region, net.minecraft.world.entity.player.Player player)
      Permission needs to be separately handled for - using commands - modifying region properties
    • playerHasBypassPermission

      public static boolean playerHasBypassPermission(@NotNull @NotNull IProtectedRegion region, @Nullable @Nullable net.minecraft.world.entity.player.Player player)
    • hasConfigPermAndOpBypassFlags

      public boolean hasConfigPermAndOpBypassFlags(net.minecraft.world.entity.player.Player player)
    • hasConfigPermission

      public boolean hasConfigPermission(net.minecraft.commands.CommandSourceStack src, CommandSourceType srcType) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • hasConfigPermission

      public boolean hasConfigPermission(net.minecraft.world.entity.player.Player player)
    • hasOwnerPermission

      public boolean hasOwnerPermission(IProtectedRegion region, net.minecraft.world.entity.player.Player player)
    • hasAnyPermission

      public boolean hasAnyPermission(IProtectedRegion region, net.minecraft.world.entity.player.Player player, List<String> groups)
    • hasCmdPermission

      public boolean hasCmdPermission(net.minecraft.commands.CommandSourceStack src)
    • isAllowedForNonOp

      public boolean isAllowedForNonOp(net.minecraft.commands.CommandSourceStack src)
    • hasGroupPermission

      public boolean hasGroupPermission(IProtectedRegion region, net.minecraft.world.entity.player.Player player, String permissionGroup)
    • isInGroup

      public boolean isInGroup(IProtectedRegion region, net.minecraft.world.entity.player.Player player, String group)