Skip to content

Commit

Permalink
Deprecate old apis for removal in 0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ham1255 committed May 14, 2024
1 parent e8715e5 commit 3273546
Showing 1 changed file with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public final String getProxyId() {
* @since 0.2.5
* @deprecated to avoid confusion between A server and A proxy see #getProxyId()
*/
@Deprecated
@Deprecated(forRemoval = true)
public final String getServerId() {
return getProxyId();
}
Expand All @@ -248,7 +248,7 @@ public final List<String> getAllProxies() {
* @since 0.2.5
* @deprecated to avoid confusion between A server and A proxy see see {@link #getAllProxies()}
*/
@Deprecated
@Deprecated(forRemoval = true)
public final List<String> getAllServers() {
return getAllProxies();
}
Expand All @@ -260,7 +260,7 @@ public final List<String> getAllServers() {
* @since 0.3
* @deprecated No longer required
*/
@Deprecated
@Deprecated(forRemoval = true)
public final void registerPubSubChannels(String... channels) {
}

Expand All @@ -271,7 +271,7 @@ public final void registerPubSubChannels(String... channels) {
* @since 0.3
* @deprecated No longer required
*/
@Deprecated
@Deprecated(forRemoval = true)
public final void unregisterPubSubChannels(String... channels) {
}

Expand Down Expand Up @@ -352,7 +352,7 @@ public final UUID getUuidFromName(@NonNull String name, boolean expensiveLookups
* @since 0.8.0
* @deprecated
*/
@Deprecated
@Deprecated(forRemoval = true)
public void kickPlayer(String playerName, String message) {
kickPlayer(getUuidFromName(playerName), message);
}
Expand All @@ -365,7 +365,7 @@ public void kickPlayer(String playerName, String message) {
* @since 0.8.0
* @deprecated
*/
@Deprecated
@Deprecated(forRemoval = true)
public void kickPlayer(UUID playerUUID, String message) {
kickPlayer(playerUUID, Component.text(message));
}
Expand Down Expand Up @@ -402,7 +402,9 @@ public void kickPlayer(UUID playerUUID, Component message) {
* @throws IllegalStateException if the {@link #getMode()} is not equal to {@link RedisBungeeMode#SINGLE}
* @see #getJedisPool()
* @since 0.7.0
* @deprecated use {@link #getSummoner() }
*/
@Deprecated(forRemoval = true)
public Jedis requestJedis() {
if (getMode() == RedisBungeeMode.SINGLE) {
return getJedisPool().getResource();
Expand Down Expand Up @@ -438,7 +440,9 @@ public JedisPool getJedisPool() {
* @return {@link redis.clients.jedis.JedisCluster}
* @throws IllegalStateException if the {@link #getMode()} is not equal to {@link RedisBungeeMode#CLUSTER}
* @since 0.8.0
* @deprecated use {@link #getSummoner()}
*/
@Deprecated(forRemoval = true)
public JedisCluster requestClusterJedis() {
if (getMode() == RedisBungeeMode.CLUSTER) {
return ((JedisClusterSummoner) this.plugin.getSummoner()).obtainResource();
Expand All @@ -454,7 +458,9 @@ public JedisCluster requestClusterJedis() {
* @return {@link redis.clients.jedis.JedisPooled}
* @throws IllegalStateException if the {@link #getMode()} is not equal to {@link RedisBungeeMode#SINGLE}
* @since 0.8.0
* @deprecated use {@link #getSummoner()}
*/
@Deprecated(forRemoval = true)
public JedisPooled requestJedisPooled() {
if (getMode() == RedisBungeeMode.SINGLE) {
return ((JedisPooledSummoner) this.plugin.getSummoner()).obtainResource();
Expand Down

0 comments on commit 3273546

Please sign in to comment.