mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-20 14:28:07 +00:00
only save command if it is a GM command
This commit is contained in:
@@ -121,7 +121,7 @@ void SlashCommandHandler::HandleChatCommand(const std::u16string& chat, Entity*
|
|||||||
if (commandItr != RegisteredCommands.end()) {
|
if (commandItr != RegisteredCommands.end()) {
|
||||||
auto& [alias, commandHandle] = *commandItr;
|
auto& [alias, commandHandle] = *commandItr;
|
||||||
if (entity->GetGMLevel() >= commandHandle.requiredLevel) {
|
if (entity->GetGMLevel() >= commandHandle.requiredLevel) {
|
||||||
Database::Get()->InsertSlashCommandUsage(entity->GetObjectID(), input);
|
if (commandHandle.requiredLevel > eGameMasterLevel::CIVILIAN) Database::Get()->InsertSlashCommandUsage(entity->GetObjectID(), input);
|
||||||
commandHandle.handle(entity, sysAddr, args);
|
commandHandle.handle(entity, sysAddr, args);
|
||||||
} else {
|
} else {
|
||||||
// We don't need to tell civilians they aren't high enough level
|
// We don't need to tell civilians they aren't high enough level
|
||||||
|
Reference in New Issue
Block a user