fix: Clear listeners list on unregister
This commit is contained in:
parent
581e615363
commit
3395a54104
@ -105,6 +105,7 @@ public class AuthMeVelocityPlugin {
|
||||
proxy.getChannelRegistrar().register(AUTHMEVELOCITY_CHANNEL);
|
||||
|
||||
listeners.forEach(listener -> proxy.getEventManager().unregisterListener(this, listener));
|
||||
listeners.clear();
|
||||
|
||||
listeners.add(new ProxyListener(config, api, logger, proxy));
|
||||
listeners.add(new PluginMessageListener(proxy, logger, config, api));
|
||||
|
Loading…
x
Reference in New Issue
Block a user