mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-22 21:40:05 +00:00
Fix /help using accoutnId instead of accountLevel
This commit is contained in:
parent
e3568ea506
commit
8351596763
@ -49,7 +49,7 @@ void helpCommand(std::string full, std::vector<std::string>& args, CNSocket* soc
|
|||||||
Player *plr = PlayerManager::getPlayer(sock);
|
Player *plr = PlayerManager::getPlayer(sock);
|
||||||
|
|
||||||
for (auto& cmd : ChatManager::commands) {
|
for (auto& cmd : ChatManager::commands) {
|
||||||
if (cmd.second.requiredAccLevel >= plr->accountId)
|
if (cmd.second.requiredAccLevel >= plr->accountLevel)
|
||||||
ChatManager::sendServerMessage(sock, "/" + cmd.first + (cmd.second.help.length() > 0 ? " - " + cmd.second.help : ""));
|
ChatManager::sendServerMessage(sock, "/" + cmd.first + (cmd.second.help.length() > 0 ? " - " + cmd.second.help : ""));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user