More work on commands

This commit is contained in:
William committed 2023-03-12 12:49:46 +00:00
1 parent 0bd63a9f01
commit a72109667a
33 files changed
+445 -382

No files matched your search

@@ -57,7 +57,7 @@ public class PluginMessageBroker extends Broker {
try (final DataInputStream messageReader = new DataInputStream(new ByteArrayInputStream(messageBody))) {
super.handle(user, plugin.getGson().fromJson(messageReader.readUTF(), Message.class));
} catch (IOException e) {
plugin.getLoggingAdapter().log(Level.SEVERE, "Failed to fully read plugin message", e);
plugin.log(Level.SEVERE, "Failed to fully read plugin message", e);
}
}
@@ -77,7 +77,7 @@ public class PluginMessageBroker extends Broker {
messageWriter.write(messageByteStream.toByteArray());
}
} catch (IOException e) {
plugin.getLoggingAdapter().log(Level.SEVERE, "Exception dispatching plugin message", e);
plugin.log(Level.SEVERE, "Exception dispatching plugin message", e);
return;
}
@@ -34,7 +34,7 @@ public class RedisBroker extends PluginMessageBroker {
new Thread(getSubscriber(), plugin.getKey("redis_subscriber").toString()).start();
plugin.getLoggingAdapter().log(Level.INFO, "Initialized Redis connection pool");
plugin.log(Level.INFO, "Initialized Redis connection pool");
}
@NotNull