Class WorldGuardIntegration

java.lang.Object
wtf.choco.veinminer.integration.WorldGuardIntegration

public final class WorldGuardIntegration extends Object
Integration with WorldGuard providing custom flags.
  • Method Details

    • init

      public static void init(@NotNull @NotNull VeinMinerPlugin plugin)
      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 given Block according to WorldGuard region flags.
      Parameters:
      block - the block to check
      player - the player to check
      Returns:
      true if allowed, false if denied permission