[Commands] Add #show aas Command (#3710)

# Notes
- Allows operators to view AAs a player has purchased from ingame and their ranks.
This commit is contained in:
Alex King
2023-11-26 00:27:02 -05:00
committed by GitHub
parent 3a49d851ca
commit 692a90f3f0
5 changed files with 111 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#include "../../client.h"
void ShowAAs(Client *c, const Seperator *sep)
{
Client *t = c;
if (c->GetTarget() && c->GetTarget()->IsClient()) {
t = c->GetTarget()->CastToClient();
}
const std::string& search_criteria = sep->argnum >= 2 ? sep->argplus[2] : std::string();
t->ListPurchasedAAs(c, search_criteria);
}