LuckPerms

LuckPerms

41.4k Downloads

Unregister event and unsubscribe.

Samuele1818 opened this issue ยท 1 comments

commented

I'm trying to unregister event
luckPermsHook.api.getEventBus().subscribe(UserLoadEvent.class, luckPermsHook::onUserLoad).close();
but this method not work. Can you help me?

commented

You need to store the instance returned by the subscribe method, and then call close on it when you are ready to unregister.