Package de.z0rdak.yawp.config.server
Class PermissionConfig
java.lang.Object
de.z0rdak.yawp.config.server.PermissionConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final net.minecraftforge.common.ForgeConfigSpecstatic final org.apache.logging.log4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanstatic intstatic booleanhasConfigPermission(net.minecraft.commands.CommandSourceStack src, CommandSourceType cmdSrcType) static booleanhasConfigPermission(net.minecraft.world.entity.player.Player player) static booleanhasRequiredOpLevel(net.minecraft.world.entity.player.Player player) static booleanhasUUIDConfigEntry(net.minecraft.world.entity.player.Player player) static booleanstatic booleanstatic booleanstatic booleanstatic boolean
-
Field Details
-
CONFIG_SPEC
public static final net.minecraftforge.common.ForgeConfigSpec CONFIG_SPEC -
CONFIG_NAME
- See Also:
-
PERMISSION_CONFIG_LOGGER
public static final org.apache.logging.log4j.Logger PERMISSION_CONFIG_LOGGER
-
-
Constructor Details
-
PermissionConfig
public PermissionConfig()
-
-
Method Details
-
UUIDsWithPermission
-
isReadOnlyAllowed
public static boolean isReadOnlyAllowed() -
isCmdEnabledForNonOp
public static boolean isCmdEnabledForNonOp() -
allowRegionTp
public static boolean allowRegionTp() -
isMarkerCreationEnabled
public static boolean isMarkerCreationEnabled() -
isHierarchyOwnershipEnabled
public static boolean isHierarchyOwnershipEnabled() -
isCommandBlockExecutionAllowed
public static boolean isCommandBlockExecutionAllowed() -
getRequiredOpLevel
public static int getRequiredOpLevel() -
byPassFlagAllowed
public static boolean byPassFlagAllowed() -
hasConfigPermission
public static boolean hasConfigPermission(net.minecraft.world.entity.player.Player player) -
hasUUIDConfigEntry
public static boolean hasUUIDConfigEntry(net.minecraft.world.entity.player.Player player) -
hasRequiredOpLevel
public static boolean hasRequiredOpLevel(net.minecraft.world.entity.player.Player player) -
hasConfigPermission
public static boolean hasConfigPermission(net.minecraft.commands.CommandSourceStack src, CommandSourceType cmdSrcType) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-