mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-04 02:06:50 +00:00
[GM Commands] Split GM Commands Into Separate Files (#1766)
* Split GM commands into their own files * Code cleanup
This commit is contained in:
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#include "../client.h"
|
||||
#include "../corpse.h"
|
||||
|
||||
void command_depop(Client *c, const Seperator *sep)
|
||||
{
|
||||
if (c->GetTarget() == 0 || !(c->GetTarget()->IsNPC() || c->GetTarget()->IsNPCCorpse())) {
|
||||
c->Message(Chat::White, "You must have a NPC target for this command. (maybe you meant #depopzone?)");
|
||||
}
|
||||
else {
|
||||
c->Message(Chat::White, "Depoping '%s'.", c->GetTarget()->GetName());
|
||||
c->GetTarget()->Depop();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user