fix: Clear listeners list on unregister

This commit is contained in:
4drian3d 2022-07-27 16:23:27 +00:00
parent 581e615363
commit 3395a54104

View File

@ -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));