From 22f505e8a2bfd8d9dd7d6bbfc3922b7825712280 Mon Sep 17 00:00:00 2001 From: mohammed jasem alaajel Date: Tue, 18 Jun 2024 02:13:47 +0400 Subject: [PATCH] readd pubsub method until release --- .../redisbungee/AbstractRedisBungeeAPI.java | 18 ++++++++++++++++++ .../minecraft/redisbungee/RedisBungeeAPI.java | 1 + 2 files changed, 19 insertions(+) diff --git a/api/src/main/java/com/imaginarycode/minecraft/redisbungee/AbstractRedisBungeeAPI.java b/api/src/main/java/com/imaginarycode/minecraft/redisbungee/AbstractRedisBungeeAPI.java index d1e6f13..1b5debe 100644 --- a/api/src/main/java/com/imaginarycode/minecraft/redisbungee/AbstractRedisBungeeAPI.java +++ b/api/src/main/java/com/imaginarycode/minecraft/redisbungee/AbstractRedisBungeeAPI.java @@ -337,4 +337,22 @@ public abstract class AbstractRedisBungeeAPI { public static AbstractRedisBungeeAPI getAbstractRedisBungeeAPI() { return abstractRedisBungeeAPI; } + + @Deprecated(forRemoval = true) + public void registerPubSubChannels(String... channels) { + } + + /** + * Warning: this is Legacy API to maintain backward compatibility with RedisBungee Pre fork 0.5 + *

+ * Unregister (a) PubSub channel(s). + * + * @param channels the channels to unregister + * @since 0.3 + * @deprecated No longer required + */ + @Deprecated(forRemoval = true) + public void unregisterPubSubChannels(String... channels) { + } + } diff --git a/proxies/bungeecord/bungeecord-api/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeAPI.java b/proxies/bungeecord/bungeecord-api/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeAPI.java index 6fe8456..c547fae 100644 --- a/proxies/bungeecord/bungeecord-api/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeAPI.java +++ b/proxies/bungeecord/bungeecord-api/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeAPI.java @@ -135,6 +135,7 @@ public class RedisBungeeAPI extends AbstractRedisBungeeAPI { * @since 0.3 * @deprecated No longer required */ + @Deprecated public final void unregisterPubSubChannels(String... channels) { }