2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-11-05 12:58:02 +00:00
RedisBungee/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisUtil.java

19 lines
687 B
Java
Raw Normal View History

/**
* Copyright © 2013 tuxed <write@imaginarycode.com>
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
*/
2014-04-19 20:08:49 +00:00
package com.imaginarycode.minecraft.redisbungee;
import redis.clients.jedis.Jedis;
class RedisUtil {
2014-04-19 20:08:49 +00:00
public static void cleanUpPlayer(String player, Jedis rsc) {
rsc.srem("proxy:" + RedisBungee.getApi().getServerId() + ":usersOnline", player);
rsc.hdel("player:" + player, "server");
rsc.hdel("player:" + player, "ip");
rsc.hdel("player:" + player, "proxy");
}
2014-04-19 20:08:49 +00:00
}