2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-11-23 04:28:01 +00:00
This commit is contained in:
vemacs 2015-02-10 08:04:06 -07:00
commit f391793e45
4 changed files with 10 additions and 10 deletions

View File

@ -14,7 +14,7 @@
<groupId>com.imaginarycode.minecraft</groupId>
<artifactId>RedisBungee</artifactId>
<version>0.3.5-SNAPSHOT</version>
<version>0.3.6-SNAPSHOT</version>
<repositories>
<repository>

View File

@ -6,6 +6,7 @@
*/
package com.imaginarycode.minecraft.redisbungee;
import com.google.common.net.InetAddresses;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.google.gson.reflect.TypeToken;
@ -24,7 +25,6 @@ import redis.clients.jedis.Jedis;
import redis.clients.jedis.exceptions.JedisConnectionException;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
@ -122,11 +122,7 @@ public class DataManager implements Listener {
try {
String result = tmpRsc.hget("player:" + uuid, "ip");
if (result != null) {
address = InetAddress.getByName(result);
if (address == null)
return null;
address = InetAddresses.forString(result);
ipCache.put(uuid, address);
return address;
}
@ -137,8 +133,6 @@ public class DataManager implements Listener {
if (tmpRsc != null)
plugin.getPool().returnBrokenResource(tmpRsc);
throw new RuntimeException("Unable to get server for " + uuid, e);
} catch (UnknownHostException e) {
return null;
} finally {
plugin.getPool().returnResource(tmpRsc);
}

View File

@ -1,6 +1,6 @@
name: RedisBungee
main: com.imaginarycode.minecraft.redisbungee.RedisBungee
version: 0.3.5
version: 0.3.6
author: tuxed
# This is used so that we can automagically override default BungeeCord behavior.
softDepends: ["cmd_find", "cmd_list"]

View File

@ -1,3 +1,9 @@
/**
* 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.test;
import com.imaginarycode.minecraft.redisbungee.util.NameFetcher;