Fix handlers and added some more logging
This commit is contained in:
parent
aa4abfcdee
commit
105c914483
|
|
@ -6,7 +6,7 @@ import org.jetbrains.annotations.NotNull;
|
|||
|
||||
public class LockResponseEvent extends Event {
|
||||
|
||||
private final HandlerList handlers = new HandlerList();
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
private final String channel;
|
||||
private final ResponseType responseType;
|
||||
private final String data;
|
||||
|
|
@ -36,6 +36,11 @@ public class LockResponseEvent extends Event {
|
|||
return result;
|
||||
}
|
||||
|
||||
public static @NotNull HandlerList getHandlerList() {
|
||||
return handlers;
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull HandlerList getHandlers() {
|
||||
return handlers;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user