-
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Mirai edited this page Nov 11, 2024
·
8 revisions
When the plugin is enabled, an instance of LuckPerms 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](https://github.com/[RSTeamCore/WGRPAddonExample](https://github.com/RSTeamCore/WGRPAddonExample).