Try to fix lowercase issue

This commit is contained in:
Xephi59
2015-08-02 00:40:00 +02:00
parent 297b3d161f
commit fa7c8be10f
2 changed files with 2 additions and 1 deletions
@@ -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() {