9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2025-12-26 01:59:20 +00:00

Fix #3 handling messages for closing servers

This commit is contained in:
William
2021-10-30 18:16:03 +01:00
parent 70a66c7801
commit 2367b14738

View File

@@ -39,6 +39,10 @@ public class BukkitRedisListener extends RedisListener {
if (!message.getMessageTarget().targetServerType().equals(Settings.ServerType.BUKKIT)) {
return;
}
// Ignore messages if the plugin is disabled
if (!plugin.isEnabled()) {
return;
}
// Handle the incoming redis message; either for a specific player or the system
if (message.getMessageTarget().targetPlayerUUID() == null) {