2014-04-20 05:12:28 +00:00
|
|
|
/**
|
|
|
|
* 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;
|
|
|
|
|
|
|
|
public class RedisUtil {
|
|
|
|
public static void cleanUpPlayer(String player, Jedis rsc) {
|
2014-05-21 00:30:31 +00:00
|
|
|
rsc.srem("server:" + RedisBungee.getApi().getServerId() + ":usersOnline", player);
|
2014-04-19 20:08:49 +00:00
|
|
|
rsc.hdel("player:" + player, "server");
|
|
|
|
rsc.hdel("player:" + player, "ip");
|
|
|
|
}
|
|
|
|
}
|