Fix custom disconnect reason for script fail

This commit is contained in:
Vortrex
2022-09-09 04:43:08 -05:00
parent 879943767d
commit d4ffc12c9c

View File

@@ -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);
}
// ==========================================================================