Kick reason for all clients being disconnected
This commit is contained in:
@@ -45,7 +45,8 @@ function kickClientCommand(command, params, client) {
|
|||||||
|
|
||||||
//getPlayerData(targetClient).customDisconnectReason = reason;
|
//getPlayerData(targetClient).customDisconnectReason = reason;
|
||||||
announceAdminAction(`PlayerKicked`, getPlayerName(targetClient));
|
announceAdminAction(`PlayerKicked`, getPlayerName(targetClient));
|
||||||
targetdisconnectPlayer(client);
|
getPlayerData(targetClient).customDisconnectReason = `Kicked - ${reason}`;
|
||||||
|
disconnectPlayer(targetClient);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
@@ -85,7 +86,6 @@ function setStaffTitleCommand(command, params, client) {
|
|||||||
getPlayerData(targetClient).accountData.staffTitle = staffTitle;
|
getPlayerData(targetClient).accountData.staffTitle = staffTitle;
|
||||||
messageAdmins(`{adminOrange}${getPlayerName(client)}{MAINCOLOUR} set {ALTCOLOUR}${getPlayerName(targetClient)}'s{MAINCOLOUR} staff title to ${staffTitle}`);
|
messageAdmins(`{adminOrange}${getPlayerName(client)}{MAINCOLOUR} set {ALTCOLOUR}${getPlayerName(targetClient)}'s{MAINCOLOUR} staff title to ${staffTitle}`);
|
||||||
messagePlayerAlert(targetClient, `${getPlayerName(client)} set your staff title to ${staffTitle}`);
|
messagePlayerAlert(targetClient, `${getPlayerName(client)} set your staff title to ${staffTitle}`);
|
||||||
//targetdisconnectPlayer(client);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user