Fix custom disconnect reason for script fail
This commit is contained in:
@@ -131,7 +131,7 @@ function playerClientStarted(client) {
|
|||||||
|
|
||||||
function playerClientStopped(client) {
|
function playerClientStopped(client) {
|
||||||
logToConsole(LOG_DEBUG, `[VRR.Client] ${getPlayerDisplayForConsole(client)}'s client resources have stopped (possibly error?). Kicking them from the server ...`);
|
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);
|
disconnectPlayer(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1281,4 +1281,10 @@ function sendPlayerCurrencyString(client) {
|
|||||||
sendNetworkEventToPlayer("agrp.currencyString", client, getGlobalConfig().economy.currencyString);
|
sendNetworkEventToPlayer("agrp.currencyString", client, getGlobalConfig().economy.currencyString);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ==========================================================================
|
||||||
|
|
||||||
|
function sendMapChangeWarningToPlayer(client, changingToNight) {
|
||||||
|
sendNetworkEventToPlayer("agrp.mapChangingSoon", client, changingToNight);
|
||||||
|
}
|
||||||
|
|
||||||
// ==========================================================================
|
// ==========================================================================
|
||||||
Reference in New Issue
Block a user