Package de.z0rdak.yawp.api.permission
Class Permissions
java.lang.Object
de.z0rdak.yawp.api.permission.Permissions
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Permissionsget()getGroups(IProtectedRegion region, net.minecraft.world.entity.player.Player player) Permission needs to be separately handled for - using commands - modifying region propertiesbooleanhasAnyPermission(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) booleanhasConfigPermission(net.minecraft.world.entity.player.Player player) 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) static booleanplayerHasBypassPermission(@NotNull IProtectedRegion region, @Nullable net.minecraft.world.entity.player.Player player)
-
Field Details
-
MEMBER
- See Also:
-
OWNER
- See Also:
-
GROUP_LIST
-
-
Method Details
-
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)
-