diff --git a/scripts/server/moderation.js b/scripts/server/moderation.js index 4ee3b3f8..e6599692 100644 --- a/scripts/server/moderation.js +++ b/scripts/server/moderation.js @@ -855,11 +855,11 @@ function givePlayerMoneyCommand(command, params, client) { return false; } - givePlayerCash(client, toInteger(amount)); + givePlayerCash(targetClient, toInteger(amount)); updatePlayerCash(targetClient); //messagePlayerSuccess(client, `You gave {ALTCOLOUR}$${amount} {MAINCOLOUR}to {ALTCOLOUR}${getCharacterFullName(targetClient)}`); messageAdmins(`${client.name} {MAINCOLOUR}gave {ALTCOLOUR}$${amount} {MAINCOLOUR}to {ALTCOLOUR}${getCharacterFullName(targetClient)}`) - messagePlayerAlert(client, `An admin gave you {ALTCOLOUR}$${amount}`); + messagePlayerAlert(targetClient, `An admin gave you {ALTCOLOUR}$${amount}`); } // ===========================================================================