Skip to content

Commit

Permalink
fix: plugin message channels not registering with Redis broker
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed Feb 14, 2024
1 parent 8d0871a commit 7ee4bae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ public void registerMetrics(int metricsId) {
@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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ public RedisBroker(@NotNull HuskHomes plugin) {
@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 {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7ee4bae

Please sign in to comment.