mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-11-05 21:08:02 +00:00
12 lines
385 B
Java
12 lines
385 B
Java
package com.imaginarycode.minecraft.redisbungee;
|
|
|
|
import redis.clients.jedis.Jedis;
|
|
|
|
public class RedisUtil {
|
|
public static void cleanUpPlayer(String player, Jedis rsc) {
|
|
rsc.srem("server:" + RedisBungee.getConfiguration().getString("server-id") + ":usersOnline", player);
|
|
rsc.hdel("player:" + player, "server");
|
|
rsc.hdel("player:" + player, "ip");
|
|
}
|
|
}
|