Server-configurable nametag distance

This commit is contained in:
Vortrex
2022-04-30 13:18:26 -05:00
parent 7ee19c0931
commit 29856cf03e
6 changed files with 50 additions and 14 deletions

View File

@@ -605,6 +605,9 @@ function onPlayerSpawn(client) {
logToConsole(LOG_DEBUG, `[VRR.Event] Updating all player name tags`);
updateAllPlayerNameTags();
logToConsole(LOG_DEBUG, `[VRR.Event] Sending player nametag distance to ${getPlayerDisplayForConsole(client)}`);
sendNameTagDistanceToClient(client, getServerConfig().nameTagDistance);
if(!areServerElementsSupported()) {
sendAllBusinessesToPlayer(client);
sendAllHousesToPlayer(client);