fix: plugin message channels not registering with Redis broker

This commit is contained in:
William278 committed 2024-02-14 09:00:34 +00:00
1 parent 8d0871af78
commit 7ee4bae68a
3 files changed
+6 -3

No files matched your search

@@ -353,8 +353,8 @@ public class BukkitHuskHomes extends JavaPlugin implements HuskHomes, BukkitTask
@Override
public void initializePluginChannels() {
final String channelId = PluginMessageBroker.BUNGEE_CHANNEL_ID;
Bukkit.getMessenger().registerIncomingPluginChannel(this, channelId, this);
Bukkit.getMessenger().registerOutgoingPluginChannel(this, channelId);
getServer().getMessenger().registerIncomingPluginChannel(this, channelId, this);
getServer().getMessenger().registerOutgoingPluginChannel(this, channelId);
}
@Override
@@ -49,6 +49,9 @@ public class RedisBroker extends PluginMessageBroker {
@Blocking
@Override
public void initialize() throws IllegalStateException {
// Initialize plugin message channels
super.initialize();
// Establish a connection with the Redis server
final Pool<Jedis> jedisPool = getJedisPool(plugin.getSettings().getCrossServer().getRedis());
try {
+1 -1
View File
@@ -4,7 +4,7 @@ org.gradle.jvmargs='-Dfile.encoding=UTF-8'
org.gradle.daemon=true
# Plugin metadata
plugin_version=4.6
plugin_version=4.6.1
plugin_archive=huskhomes
plugin_description=The powerful and intuitive homes, warps, and teleports plugin/mod