Fix staff title change telling admin instead of player

This commit is contained in:
Vortrex
2022-05-22 23:36:41 -05:00
parent ab82f38076
commit 949033c1ef

View File

@@ -84,8 +84,8 @@ function setStaffTitleCommand(command, params, client) {
getPlayerData(targetClient).accountData.staffTitle = staffTitle;
messageAdmins(`{adminOrange}${getPlayerName(client)}{MAINCOLOUR} set {ALTCOLOUR}${getPlayerName(targetClient)}'s{MAINCOLOUR} staff title to ${staffTitle}`);
messagePlayerAlert(client, `${getPlayerName(client)} set your staff title to ${staffTitle}`);
targetdisconnectPlayer(client);
messagePlayerAlert(targetClient, `${getPlayerName(client)} set your staff title to ${staffTitle}`);
//targetdisconnectPlayer(client);
}
// ===========================================================================