espidev / ProtectionStones

A useful and intuitive Minecraft region protection plugin that uses a certain block to protect regions.
https://www.spigotmc.org/resources/protectionstones-updated-for-1-13-wg7.61797/
GNU General Public License v3.0
67 stars 34 forks source link

Get PSRegion from Block #397

Closed swat1x closed 6 months ago

swat1x commented 6 months ago

Is is possible to get PSRegion or PSProtectBlock from org.bukkit.Block without loop for all regions? Like PSRegion.fromProtectedBlock(Block)

espidev commented 6 months ago

You can use PSRegion.fromLocationGroup(block.getLocation())