Package de.z0rdak.yawp.platform
Class ForgePermissionHelper
java.lang.Object
de.z0rdak.yawp.platform.ForgePermissionHelper
- All Implemented Interfaces:
IPermissionHelper
-
Constructor Summary
Constructors -
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)
-
Constructor Details
-
ForgePermissionHelper
public ForgePermissionHelper()
-
-
Method Details
-
hasConfigPermission
public boolean hasConfigPermission(net.minecraft.commands.CommandSourceStack src, CommandSourceType srcType) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
hasConfigPermissionin interfaceIPermissionHelper- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
isAllowedForNonOp
public boolean isAllowedForNonOp(net.minecraft.commands.CommandSourceStack src) - Specified by:
isAllowedForNonOpin interfaceIPermissionHelper
-
hasConfigPermAndOpBypassFlags
public boolean hasConfigPermAndOpBypassFlags(net.minecraft.world.entity.player.Player player) - Specified by:
hasConfigPermAndOpBypassFlagsin interfaceIPermissionHelper
-
hasOwnerPermission
public boolean hasOwnerPermission(IProtectedRegion region, net.minecraft.world.entity.player.Player player) - Specified by:
hasOwnerPermissionin interfaceIPermissionHelper
-
hasAnyPermission
public boolean hasAnyPermission(IProtectedRegion region, net.minecraft.world.entity.player.Player player, List<String> groups) - Specified by:
hasAnyPermissionin interfaceIPermissionHelper
-
hasCmdPermission
public boolean hasCmdPermission(net.minecraft.commands.CommandSourceStack src) - Specified by:
hasCmdPermissionin interfaceIPermissionHelper
-
hasGroupPermission
public boolean hasGroupPermission(IProtectedRegion region, net.minecraft.world.entity.player.Player player, String permissionGroup) - Specified by:
hasGroupPermissionin interfaceIPermissionHelper
-
isInGroup
public boolean isInGroup(IProtectedRegion region, net.minecraft.world.entity.player.Player player, String group) - Specified by:
isInGroupin interfaceIPermissionHelper
-