Fix getUUIDFromName() returning null even when player is online.

This commit is contained in:
ItsHarry 2016-01-26 02:51:46 +01:00
parent f5af1aed70
commit 9c63adb5f7
2 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@ public class RedisBungeeListener implements Listener {
}
Pipeline pipeline = jedis.pipelined();
plugin.getUuidTranslator().persistInfo(event.getConnection().getName(), event.getConnection().getUniqueId(), pipeline);
plugin.getUuidTranslator().persistInfo(event.getConnection().getName().toLowerCase(), event.getConnection().getUniqueId(), pipeline);
RedisUtil.createPlayer(event.getConnection(), pipeline, false);
// We're not publishing, the API says we only publish at PostLoginEvent time.
pipeline.sync();

View File

@ -101,7 +101,7 @@ public final class UUIDTranslator {
}
for (Map.Entry<String, UUID> entry : uuidMap1.entrySet()) {
if (entry.getKey().equalsIgnoreCase(player)) {
persistInfo(entry.getKey(), entry.getValue(), jedis);
persistInfo(entry.getKey().toLowerCase(), entry.getValue(), jedis);
return entry.getValue();
}
}
@ -161,7 +161,7 @@ public final class UUIDTranslator {
}
if (name != null) {
persistInfo(name, player, jedis);
persistInfo(name.toLowerCase(), player, jedis);
return name;
}