Flatfile don't support lowercase

This commit is contained in:
Xephi59 2015-08-02 00:56:50 +02:00
parent fa7c8be10f
commit 9be5d3518f

View File

@ -99,7 +99,7 @@ public class AsyncronousJoin {
}
}
final Location spawnLoc = plugin.getSpawnLocation(player);
if (database.isAuthAvailable(name)) {
if (database.getType() != DataSource.DataSourceType.FILE && database.isAuthAvailable(name)) {
PlayerAuth auth = database.getAuth(name);
if (auth.getRealName() != null && !auth.getRealName().isEmpty() && !auth.getRealName().equalsIgnoreCase("Player") && !auth.getRealName().equals(player.getName())) {
final GameMode gM = AuthMePlayerListener.gameMode.get(name);