Class PlotSquared6ProtectionHook
java.lang.Object
nl.pim16aap2.animatedarchitecture.spigot.hooks.plotsquared6.PlotSquared6ProtectionHook
- All Implemented Interfaces:
IProtectionHookSpigot
Deprecated.
PlotSquared 6 is no longer supported. It will be removed in a future version.
Protection hook for PlotSquared 6.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncanBreakBlock(org.bukkit.entity.Player player, org.bukkit.Location loc) Deprecated.Check if this compatibility hook allows a player to break blocks at a given location.canBreakBlocksInCuboid(org.bukkit.entity.Player player, org.bukkit.World world, Cuboid cuboid) Deprecated.Check if this compatibility hook allows a player to break blocks in a given cuboid.Deprecated.Get theProtectionHookContextthat is being used.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nl.pim16aap2.animatedarchitecture.spigot.util.hooks.IProtectionHookSpigot
getName, hasPermission, hasPermissionOffline, lazyFormatPlayerName, preCheck, preCheckAsync
-
Constructor Details
-
PlotSquared6ProtectionHook
Deprecated.
-
-
Method Details
-
canBreakBlock
public CompletableFuture<Boolean> canBreakBlock(org.bukkit.entity.Player player, org.bukkit.Location loc) Deprecated.Description copied from interface:IProtectionHookSpigotCheck if this compatibility hook allows a player to break blocks at a given location.- Specified by:
canBreakBlockin interfaceIProtectionHookSpigot- Parameters:
player- The (fake) player to check.loc- The location to check.- Returns:
- True if the player is allowed to break blocks at the given location.
-
canBreakBlocksInCuboid
public CompletableFuture<Boolean> canBreakBlocksInCuboid(org.bukkit.entity.Player player, org.bukkit.World world, Cuboid cuboid) Deprecated.Description copied from interface:IProtectionHookSpigotCheck if this compatibility hook allows a player to break blocks in a given cuboid.- Specified by:
canBreakBlocksInCuboidin interfaceIProtectionHookSpigot- Parameters:
player- The (fake) player to check.world- The world to check in.cuboid- The cuboid to check.- Returns:
- True if the player is allowed to break all the blocks in the given cuboid.
-
getContext
Deprecated.Description copied from interface:IProtectionHookSpigotGet theProtectionHookContextthat is being used.- Specified by:
getContextin interfaceIProtectionHookSpigot- Returns:
- The
ProtectionHookContextthat is being used.
-