When the plugin is enabled, an instance of WorldGuardRegionProtect will be provided in the Bukkit ServicesManager:
RegisteredServiceProvider<WorldGuardRegionProtect> provider = Bukkit.getServicesManager().getRegistration(WorldGuardRegionProtect.class); if (provider != null) { WorldGuardRegionProtect api = provider.getProvider(); }
or get instance api from plugin provider:
WorldGuardRegionProtect provider = WorldGuardRegionProtectProvider.get();
examples use api of WorldGuardRegionProtect you can seen here.
There was an error while loading. Please reload this page.