Class LandsAdapter
java.lang.Object
org.reprogle.honeypot.common.utils.integrations.LandsAdapter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAllowed(org.bukkit.entity.Player player, org.bukkit.Location location) Checks if a Honeypot is allowed to be placed at the location
-
Constructor Details
-
LandsAdapter
public LandsAdapter()Construct the LandsIntegration. This constructor is because the LandsIntegration interface must be obtained prior to utilizing the API
-
-
Method Details
-
isAllowed
public boolean isAllowed(org.bukkit.entity.Player player, org.bukkit.Location location) Checks if a Honeypot is allowed to be placed at the location- Parameters:
player- The player who triggered the interactionlocation- The location of the block- Returns:
- True if the action is allowed (No lands claim surrounding it), false if not OR if the land is unclaimed/lands is not integrated.
-