Package de.z0rdak.yawp.platform.services
Interface IPermissionHelper
- All Known Implementing Classes:
FabricPermissionHelper
public interface IPermissionHelper
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhasAnyPermission(IProtectedRegion region, net.minecraft.world.entity.player.Player player, List<String> groups) booleanhasCmdPermission(net.minecraft.commands.CommandSourceStack src) booleanhasConfigPermAndOpBypassFlags(net.minecraft.world.entity.player.Player player) booleanhasConfigPermission(net.minecraft.commands.CommandSourceStack src, CommandSourceType srcType) booleanhasGroupPermission(IProtectedRegion region, net.minecraft.world.entity.player.Player player, String permissionGroup) booleanhasOwnerPermission(IProtectedRegion region, net.minecraft.world.entity.player.Player player) booleanisAllowedForNonOp(net.minecraft.commands.CommandSourceStack src) booleanisInGroup(IProtectedRegion region, net.minecraft.world.entity.player.Player player, String group)
-
Method Details
-
hasConfigPermission
boolean hasConfigPermission(net.minecraft.commands.CommandSourceStack src, CommandSourceType srcType) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
isAllowedForNonOp
boolean isAllowedForNonOp(net.minecraft.commands.CommandSourceStack src) -
hasConfigPermAndOpBypassFlags
boolean hasConfigPermAndOpBypassFlags(net.minecraft.world.entity.player.Player player) -
hasOwnerPermission
boolean hasOwnerPermission(IProtectedRegion region, net.minecraft.world.entity.player.Player player) -
hasAnyPermission
boolean hasAnyPermission(IProtectedRegion region, net.minecraft.world.entity.player.Player player, List<String> groups) -
hasCmdPermission
boolean hasCmdPermission(net.minecraft.commands.CommandSourceStack src) -
hasGroupPermission
boolean hasGroupPermission(IProtectedRegion region, net.minecraft.world.entity.player.Player player, String permissionGroup) -
isInGroup
boolean isInGroup(IProtectedRegion region, net.minecraft.world.entity.player.Player player, String group)
-