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
2014-09-11 16:38:40 -04:00

19 lines
687 B
Java

/**
* 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.
*/
package com.imaginarycode.minecraft.redisbungee;
import redis.clients.jedis.Jedis;
class RedisUtil {
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");
}
}