mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
More work on commands
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user