Package wtf.choco.veinminer.integration
Class WorldGuardIntegration
java.lang.Object
wtf.choco.veinminer.integration.WorldGuardIntegration
Integration with WorldGuard providing custom flags.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
init
(@NotNull VeinMinerPlugin plugin) Initialize the WorldGuard integration and register the "veinminer" flag.static boolean
queryFlagVeinMiner
(@NotNull Block block, @NotNull Player player) Check whether or not VeinMiner is allowed for the givenBlock
according to WorldGuard region flags.
-
Method Details
-
init
Initialize the WorldGuard integration and register the "veinminer" flag.- Parameters:
plugin
- the plugin instance
-
queryFlagVeinMiner
public static boolean queryFlagVeinMiner(@NotNull @NotNull Block block, @NotNull @NotNull Player player) Check whether or not VeinMiner is allowed for the givenBlock
according to WorldGuard region flags.- Parameters:
block
- the block to checkplayer
- the player to check- Returns:
- true if allowed, false if denied permission
-