From 81ab3a4a99dd35a496739d9fe27de001e393e89a Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Fri, 18 Dec 2020 19:01:48 -0600 Subject: [PATCH] Remove old cmd requirements (not needed) --- scripts/server/chat.js | 60 ------------------------------------------ 1 file changed, 60 deletions(-) diff --git a/scripts/server/chat.js b/scripts/server/chat.js index 0f6ee1a6..36a723c7 100644 --- a/scripts/server/chat.js +++ b/scripts/server/chat.js @@ -17,18 +17,6 @@ function initChatScript() { // --------------------------------------------------------------------------- function meActionCommand(command, params, client) { - if(doesCommandRequireLogin(command)) { - if(!isClientLoggedIn(client)) { - messageClientError(client, "You must be logged in to use this command!"); - return false; - } - } - - if(!doesClientHaveStaffPermission(client, getCommandRequiredPermissions(command))) { - messageClientError(client, "You do not have permission to use this command!"); - return false; - } - meActionToNearbyPlayers(client, params); return true; } @@ -36,18 +24,6 @@ function meActionCommand(command, params, client) { // --------------------------------------------------------------------------- function doActionCommand(command, params, client) { - if(doesCommandRequireLogin(command)) { - if(!isClientLoggedIn(client)) { - messageClientError(client, "You must be logged in to use this command!"); - return false; - } - } - - if(!doesClientHaveStaffPermission(client, getCommandRequiredPermissions(command))) { - messageClientError(client, "You do not have permission to use this command!"); - return false; - } - doActionToNearbyPlayers(client, params); return true; } @@ -55,18 +31,6 @@ function doActionCommand(command, params, client) { // --------------------------------------------------------------------------- function shoutCommand(command, params, client) { - if(doesCommandRequireLogin(command)) { - if(!isClientLoggedIn(client)) { - messageClientError(client, "You must be logged in to use this command!"); - return false; - } - } - - if(!doesClientHaveStaffPermission(client, getCommandRequiredPermissions(command))) { - messageClientError(client, "You do not have permission to use this command!"); - return false; - } - shoutToNearbyPlayers(client, params); return true; } @@ -74,18 +38,6 @@ function shoutCommand(command, params, client) { // --------------------------------------------------------------------------- function talkCommand(command, params, client) { - if(doesCommandRequireLogin(command)) { - if(!isClientLoggedIn(client)) { - messageClientError(client, "You must be logged in to use this command!"); - return false; - } - } - - if(!doesClientHaveStaffPermission(client, getCommandRequiredPermissions(command))) { - messageClientError(client, "You do not have permission to use this command!"); - return false; - } - talkToNearbyPlayers(client, params); return true; } @@ -93,18 +45,6 @@ function talkCommand(command, params, client) { // --------------------------------------------------------------------------- function whisperCommand(command, params, client) { - if(doesCommandRequireLogin(command)) { - if(!isClientLoggedIn(client)) { - messageClientError(client, "You must be logged in to use this command!"); - return false; - } - } - - if(!doesClientHaveStaffPermission(client, getCommandRequiredPermissions(command))) { - messageClientError(client, "You do not have permission to use this command!"); - return false; - } - whisperToNearbyPlayers(client, params); return true; }