From fa7c8be10f2f92dce645274e6327b10589d26a31 Mon Sep 17 00:00:00 2001 From: Xephi59 Date: Sun, 2 Aug 2015 00:40:00 +0200 Subject: [PATCH] Try to fix lowercase issue --- src/main/java/fr/xephi/authme/api/API.java | 1 + src/main/java/fr/xephi/authme/process/join/AsyncronousJoin.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/api/API.java b/src/main/java/fr/xephi/authme/api/API.java index a5e8d190e..477494a20 100644 --- a/src/main/java/fr/xephi/authme/api/API.java +++ b/src/main/java/fr/xephi/authme/api/API.java @@ -21,6 +21,7 @@ public class API { public static final String newline = System.getProperty("line.separator"); public static AuthMe instance; + @Deprecated public API(AuthMe instance) { API.instance = instance; } diff --git a/src/main/java/fr/xephi/authme/process/join/AsyncronousJoin.java b/src/main/java/fr/xephi/authme/process/join/AsyncronousJoin.java index 9aa303116..a854a6895 100644 --- a/src/main/java/fr/xephi/authme/process/join/AsyncronousJoin.java +++ b/src/main/java/fr/xephi/authme/process/join/AsyncronousJoin.java @@ -101,7 +101,7 @@ public class AsyncronousJoin { final Location spawnLoc = plugin.getSpawnLocation(player); if (database.isAuthAvailable(name)) { PlayerAuth auth = database.getAuth(name); - if (auth.getRealName() != null && !auth.getRealName().equals("Player") && !auth.getRealName().equals(player.getName())) { + if (auth.getRealName() != null && !auth.getRealName().isEmpty() && !auth.getRealName().equalsIgnoreCase("Player") && !auth.getRealName().equals(player.getName())) { final GameMode gM = AuthMePlayerListener.gameMode.get(name); sched.scheduleSyncDelayedTask(plugin, new Runnable() {