[Commands] Add #suspendmulti Command. (#2619)

* [Commands] Add #suspendmulti Command.

# Notes
- Allows operators to suspend multiple people at once in case they have  a player who is boxing and want to suspend them all at once.

* To lower.

* Update command.cpp

* Update suspendmulti.cpp

* Create suspendmulti.cpp
This commit is contained in:
Alex King
2022-12-10 19:07:33 -05:00
committed by GitHub
parent c8218574cc
commit 8c707f9fe5
5 changed files with 104 additions and 2 deletions
+7 -1
View File
@@ -669,7 +669,13 @@ void WorldServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p)
}
case ServerOP_KickPlayer: {
ServerKickPlayer_Struct* skp = (ServerKickPlayer_Struct*)pack->pBuffer;
Client* client = entity_list.GetClientByName(skp->name);
Client* client;
if (strlen(skp->name)) {
client = entity_list.GetClientByName(skp->name);
} else if (skp->account_id) {
client = entity_list.GetClientByAccID(skp->account_id);
}
if (client) {
if (skp->adminrank >= client->Admin()) {
client->WorldKick();