Don't require args or player for staff flags list

This commit is contained in:
Vortrex
2023-03-01 01:18:22 -06:00
parent f9d6f9eff3
commit f603d71062

View File

@@ -1165,18 +1165,6 @@ function getPlayerStaffFlagsCommand(command, params, client) {
*
*/
function getStaffFlagsCommand(command, params, client) {
if (areParamsEmpty(params)) {
messagePlayerSyntax(client, getCommandSyntaxText(command));
return false;
}
let targetClient = getParam(params, " ", 1);
if (!targetClient) {
messagePlayerError(client, getLocaleString(client, "InvalidPlayer"));
return false;
}
let chunkedList = splitArrayIntoChunks(getServerBitFlagKeys().staffFlagKeys, 8);
messagePlayerInfo(client, makeChatBoxSectionHeader(getLocaleString(client, "HeaderStaffFlagsList")));