mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 13:28:25 +00:00
[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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user