Solved Problem with LuckPerms

Discussion in 'Spigot Plugin Development' started by Nemo_64, Jan 31, 2020.

  1. Hi,
    try something like this
    Code (Text):

    RegisteredServiceProvider<LuckPerms> provider = Bukkit.getServicesManager().getRegistration(LuckPerms.class);
    if (provider != null) {
       LuckPerms luckPerms = provider.getProvider();
       EventBus eventBus = luckPerms.getEventBus();

       //your stuff with event bus
       eventBus.suscribe(.....);
    }
     
    cheers!
     
    • Winner Winner x 1