Fix handlers and added some more logging

This commit is contained in:
2022-12-06 01:17:16 +01:00
parent aa4abfcdee
commit 105c914483
2 changed files with 7 additions and 1 deletions
@@ -48,6 +48,7 @@ public class DataLock implements DataLockAPI {
@Override
public synchronized void registerChannel(String channel) {
DataLockLib.getInstance().getLogger().log(Level.INFO, "Registering plugin channel on [" + channel + "]");
activeChannels.add(channel);
plugin.getServer().getMessenger().registerOutgoingPluginChannel(plugin, channel);
plugin.getServer().getMessenger().registerIncomingPluginChannel(plugin, channel, pluginMessageListener);