mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 22:16:34 +00:00
fix: plugin message channels not registering with Redis broker
This commit is contained in:
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
|
@Override
|
||||||
public void initializePluginChannels() {
|
public void initializePluginChannels() {
|
||||||
final String channelId = PluginMessageBroker.BUNGEE_CHANNEL_ID;
|
final String channelId = PluginMessageBroker.BUNGEE_CHANNEL_ID;
|
||||||
Bukkit.getMessenger().registerIncomingPluginChannel(this, channelId, this);
|
getServer().getMessenger().registerIncomingPluginChannel(this, channelId, this);
|
||||||
Bukkit.getMessenger().registerOutgoingPluginChannel(this, channelId);
|
getServer().getMessenger().registerOutgoingPluginChannel(this, channelId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -49,6 +49,9 @@ public class RedisBroker extends PluginMessageBroker {
|
|||||||
@Blocking
|
@Blocking
|
||||||
@Override
|
@Override
|
||||||
public void initialize() throws IllegalStateException {
|
public void initialize() throws IllegalStateException {
|
||||||
|
// Initialize plugin message channels
|
||||||
|
super.initialize();
|
||||||
|
|
||||||
// Establish a connection with the Redis server
|
// Establish a connection with the Redis server
|
||||||
final Pool<Jedis> jedisPool = getJedisPool(plugin.getSettings().getCrossServer().getRedis());
|
final Pool<Jedis> jedisPool = getJedisPool(plugin.getSettings().getCrossServer().getRedis());
|
||||||
try {
|
try {
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ org.gradle.jvmargs='-Dfile.encoding=UTF-8'
|
|||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
|
|
||||||
# Plugin metadata
|
# Plugin metadata
|
||||||
plugin_version=4.6
|
plugin_version=4.6.1
|
||||||
plugin_archive=huskhomes
|
plugin_archive=huskhomes
|
||||||
plugin_description=The powerful and intuitive homes, warps, and teleports plugin/mod
|
plugin_description=The powerful and intuitive homes, warps, and teleports plugin/mod
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user