Use more util funcs

This commit is contained in:
Vortrex
2021-06-14 20:05:15 -05:00
parent 7b44801a20
commit db762b44fc
32 changed files with 742 additions and 384 deletions

View File

@@ -937,7 +937,7 @@ function getPlayerDisplayForConsole(client) {
if(isNull(client)) {
return "(Unknown client)";
}
return `${client.name}[${client.index}]`;
return `${getPlayerName(client)}[${client.index}]`;
}
// ===========================================================================
@@ -946,7 +946,7 @@ function getPlayerNameForNameTag(client) {
if(isPlayerSpawned(client)) {
return `${getPlayerCurrentSubAccount(client).firstName} ${getPlayerCurrentSubAccount(client).lastName}`;
}
return client.name;
return getPlayerName(client);
}
// ===========================================================================