Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Char creator verifyName fixed (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasesser committed Apr 26, 2024
1 parent 4c814ed commit 7e8e989
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/plugins/core-character-creator/server/src/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ class InternalFunctions {
* @param {string} name
*
*/
static verifyName(player: alt.Player, name: string) {
const isValidName = Athena.systems.character.isNameTaken(name);
alt.emitClient(player, CHARACTER_CREATOR_EVENTS.VERIFY_NAME, isValidName);
static async verifyName(player: alt.Player, name: string) {
const isNameTaken = await Athena.systems.character.isNameTaken(name);
alt.emitClient(player, CHARACTER_CREATOR_EVENTS.VERIFY_NAME, !isNameTaken);
}

/**
Expand Down

0 comments on commit 7e8e989

Please sign in to comment.