diff --git a/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java b/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java index 4ce6206..6dc908d 100644 --- a/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java +++ b/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungee.java @@ -94,7 +94,7 @@ public final class RedisBungee extends Plugin { Map heartbeats = jedis.hgetAll("heartbeats"); for (Map.Entry entry : heartbeats.entrySet()) { try { - long stamp = Long.valueOf(entry.getValue()); + long stamp = Long.parseLong(entry.getValue()); if (System.currentTimeMillis() < stamp + 30000) servers.add(entry.getKey()); else if (nag <= 0) { diff --git a/src/main/java/com/imaginarycode/minecraft/redisbungee/util/UUIDFetcher.java b/src/main/java/com/imaginarycode/minecraft/redisbungee/util/UUIDFetcher.java index 738b148..c93678e 100644 --- a/src/main/java/com/imaginarycode/minecraft/redisbungee/util/UUIDFetcher.java +++ b/src/main/java/com/imaginarycode/minecraft/redisbungee/util/UUIDFetcher.java @@ -74,7 +74,7 @@ class UUIDFetcher implements Callable> { return uuidMap; } - private class Profile { + private static class Profile { String id; String name; }