From 5c60c30ea0a5a77145aad7f6432642cc957906b2 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sun, 27 Dec 2020 21:27:52 -0600 Subject: [PATCH] Move admin chat to chat.js --- scripts/server/moderation.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/scripts/server/moderation.js b/scripts/server/moderation.js index de6adeec..caeb41c0 100644 --- a/scripts/server/moderation.js +++ b/scripts/server/moderation.js @@ -506,17 +506,6 @@ function allStaffFlagsCommand(command, params, client) { // --------------------------------------------------------------------------- -function adminChatCommand(command, params, client) { - if(areParamsEmpty(params)) { - messageClientSyntax(client, getCommandSyntaxText(command)); - return false; - } - - messageAdmins(`[#FFFF00](Admin Chat) [#AAAAAA]${client.name}[#FFFFFF]: ${params}`); -} - -// --------------------------------------------------------------------------- - function givePlayerMoneyCommand(command, params, client) { if(areParamsEmpty(params)) { messageClientSyntax(client, getCommandSyntaxText(command)); @@ -537,3 +526,5 @@ function givePlayerMoneyCommand(command, params, client) { messageClientSuccess(client, `You gave [#AAAAAA]$${amount} [#FFFFFF]to [#AAAAAA]${getCharacterFullName(targetClient)}`); messageClientAlert(client, `An admin gave you [#AAAAAA]$${amount}`); } + +// --------------------------------------------------------------------------- \ No newline at end of file