mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-25 19:07:16 +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:
1 parent
c8218574cc
commit
8c707f9fe5
5 files changed
+104
-2
No files matched your search
@@ -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