mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-27 20:57:35 +01:00
Fix NPE
This commit is contained in:
parent
55fcb9c48c
commit
455864d14d
@ -466,7 +466,7 @@ public class AuthMePlayerListener implements Listener {
|
||||
return;
|
||||
}
|
||||
|
||||
if (plugin.database.getType() != DataSource.DataSourceType.FILE) {
|
||||
if (plugin.database.isAuthAvailable(name) && plugin.database.getType() != DataSource.DataSourceType.FILE) {
|
||||
PlayerAuth auth = plugin.database.getAuth(name);
|
||||
if (auth.getRealName() != null && !auth.getRealName().isEmpty() && !auth.getRealName().equalsIgnoreCase("Player") && !auth.getRealName().equals(player.getName())) {
|
||||
event.setKickMessage(m.send("same_nick")[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user