Class RedProtectProtectionHook
java.lang.Object
nl.pim16aap2.animatedarchitecture.spigot.hooks.redprotect.RedProtectProtectionHook
- All Implemented Interfaces:
IProtectionHookSpigot
Protection hook for RedProtect.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncanBreakBlock(org.bukkit.entity.Player player, org.bukkit.Location loc) 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) Check if this compatibility hook allows a player to break blocks in a given cuboid.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
-
RedProtectProtectionHook
-
-
Method Details
-
canBreakBlock
public CompletableFuture<Boolean> canBreakBlock(org.bukkit.entity.Player player, org.bukkit.Location loc) 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) 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
Description copied from interface:IProtectionHookSpigotGet theProtectionHookContextthat is being used.- Specified by:
getContextin interfaceIProtectionHookSpigot- Returns:
- The
ProtectionHookContextthat is being used.
-