diff --git a/scripts/server/netevents.js b/scripts/server/netevents.js index 85f245fa..e9b25973 100644 --- a/scripts/server/netevents.js +++ b/scripts/server/netevents.js @@ -131,7 +131,7 @@ function playerClientStarted(client) { function playerClientStopped(client) { logToConsole(LOG_DEBUG, `[VRR.Client] ${getPlayerDisplayForConsole(client)}'s client resources have stopped (possibly error?). Kicking them from the server ...`); - getPlayerData(targetClient).customDisconnectReason = `Kicked - Client script verification failed. Possible hacks.`; + getPlayerData(client).customDisconnectReason = `Kicked - Client script verification failed.`; disconnectPlayer(client); } @@ -1281,4 +1281,10 @@ function sendPlayerCurrencyString(client) { sendNetworkEventToPlayer("agrp.currencyString", client, getGlobalConfig().economy.currencyString); } +// ========================================================================== + +function sendMapChangeWarningToPlayer(client, changingToNight) { + sendNetworkEventToPlayer("agrp.mapChangingSoon", client, changingToNight); +} + // ========================================================================== \ No newline at end of file