Make scoreboard key re-bindable

This commit is contained in:
Vortrex
2023-02-21 19:48:38 -06:00
parent a0477b10fe
commit d70a8d451a
6 changed files with 36 additions and 6 deletions

View File

@@ -562,9 +562,9 @@ function onPlayerSpawn(client) {
if (!doesPlayerHaveKeyBindsDisabled(client) && doesPlayerHaveKeyBindForCommand(client, "scoreboard")) {
let keyId = getPlayerKeyBindForCommand(client, "scoreboard");
logToConsole(LOG_DEBUG, `[V.RP.Event] Sending scoreboard key ID (${keyId.key}, ${toUpperCase(getKeyNameFromId(keyId.key))}) to ${getPlayerDisplayForConsole(client)}`);
sendPlayerScoreboardKey(client, keyId.key);
sendPlayerScoreBoardKey(client, keyId.key);
} else {
sendPlayerScoreboardKey(client, -1);
sendPlayerScoreBoardKey(client, -1);
}
sendPlayerChatBoxTimeStampsState(client, isPlayerAccountSettingEnabled(client, "ChatBoxTimestamps"));