Package dev.sefiraat.sefilib.protections
Class Protections
java.lang.Object
dev.sefiraat.sefilib.protections.Protections
This class contains static methods for dealing with Slimefun4's protections.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasPermission(UUID player, Block block, io.github.thebusybiscuit.slimefun4.libraries.dough.protection.Interaction interaction) Checks if the given player is allowed to interact with the givenBlock.static booleanhasPermission(UUID player, Location location, io.github.thebusybiscuit.slimefun4.libraries.dough.protection.Interaction interaction) Checks if the given player is allowed to interact with the givenBlock.static booleanhasPermission(Player player, Block block, io.github.thebusybiscuit.slimefun4.libraries.dough.protection.Interaction interaction) static booleanhasPermission(Player player, Location location, io.github.thebusybiscuit.slimefun4.libraries.dough.protection.Interaction interaction)
-
Method Details
-
hasPermission
-
hasPermission
-
hasPermission
public static boolean hasPermission(@Nonnull UUID player, @Nonnull Block block, @Nonnull io.github.thebusybiscuit.slimefun4.libraries.dough.protection.Interaction interaction) Checks if the given player is allowed to interact with the givenBlock. -
hasPermission
public static boolean hasPermission(@Nonnull UUID player, @Nonnull Location location, @Nonnull io.github.thebusybiscuit.slimefun4.libraries.dough.protection.Interaction interaction) Checks if the given player is allowed to interact with the givenBlock.
-