Make /lair fit convention.

This commit is contained in:
Gent S 2020-12-02 18:29:21 -05:00
parent e899928928
commit 4c398895aa
1 changed files with 2 additions and 2 deletions

View File

@ -699,7 +699,7 @@ void whoisCommand(std::string full, std::vector<std::string>& args, CNSocket* so
ChatManager::sendServerMessage(sock, "[WHOIS] Instance: " + std::to_string(PLAYERID(npc->instanceID)));
}
void lairUnlock(std::string full, std::vector<std::string>& args, CNSocket* sock) {
void lairUnlockCommand(std::string full, std::vector<std::string>& args, CNSocket* sock) {
Player* plr = PlayerManager::getPlayer(sock);
if (!ChunkManager::chunkExists(plr->chunkPos))
return;
@ -773,7 +773,7 @@ void ChatManager::init() {
registerCommand("summonGroup", 30, summonGroupCommand, "summon group NPCs");
registerCommand("summonGroupW", 30, summonGroupCommand, "permanently summon group NPCs");
registerCommand("whois", 50, whoisCommand, "describe nearest NPC");
registerCommand("lair", 50, lairUnlock, "Allows entry to lair by granting you the required mission and task");
registerCommand("lair", 50, lairUnlockCommand, "get the required mission for the nearest fusion lair");
}
void ChatManager::registerCommand(std::string cmd, int requiredLevel, CommandHandler handlr, std::string help) {