Skip to content

Commit

Permalink
null check -> idExists
Browse files Browse the repository at this point in the history
  • Loading branch information
hevav committed Jan 12, 2023
1 parent 5b7e4df commit dc0a68c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ private void load() {
}

String lowercaseNickname = account.toLowerCase(Locale.ROOT);
if (this.plugin.getPlayerDao().queryForId(lowercaseNickname) != null) {
if (this.plugin.getPlayerDao().idExists(lowercaseNickname)) {
this.socialManager.broadcastMessage(dbField, id, Settings.IMP.MAIN.STRINGS.REGISTER_TAKEN_NICKNAME);
return;
}
Expand Down

0 comments on commit dc0a68c

Please sign in to comment.