2022-04-14 10:12:47 +00:00
|
|
|
package com.imaginarycode.minecraft.redisbungee;
|
|
|
|
|
2022-07-15 22:58:48 +00:00
|
|
|
import redis.clients.jedis.JedisPool;
|
|
|
|
|
2022-04-14 10:12:47 +00:00
|
|
|
/**
|
2022-04-14 10:34:56 +00:00
|
|
|
* This used to be old plugin instance of redis-bungee, but now it's used to get the api for old plugins
|
2022-04-14 10:12:47 +00:00
|
|
|
*
|
|
|
|
* @deprecated its deprecated but won't be removed, so please use {@link RedisBungeeAPI#getRedisBungeeApi()}
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
@Deprecated
|
|
|
|
public class RedisBungee {
|
|
|
|
|
|
|
|
private static RedisBungeeAPI api;
|
|
|
|
|
|
|
|
public RedisBungee(RedisBungeeAPI api) {
|
|
|
|
RedisBungee.api = api;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2022-04-14 10:34:56 +00:00
|
|
|
* This returns an instance of {@link RedisBungeeAPI}
|
2022-04-14 10:12:47 +00:00
|
|
|
*
|
|
|
|
* @deprecated Please use {@link RedisBungeeAPI#getRedisBungeeApi()} this class intended to for old plugins that no longer updated.
|
|
|
|
*
|
|
|
|
* @return the {@link RedisBungeeAPI} object instance.
|
|
|
|
*/
|
|
|
|
@Deprecated
|
|
|
|
public static RedisBungeeAPI getApi() {
|
|
|
|
return api;
|
|
|
|
}
|
|
|
|
|
2022-07-15 22:58:48 +00:00
|
|
|
@Deprecated
|
|
|
|
public JedisPool getPool() {
|
|
|
|
return api.getJedisPool();
|
|
|
|
}
|
2022-04-14 10:12:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
}
|