mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 15:07:28 +00:00
only save command if it is a GM command
This commit is contained in:
parent
cc274adf6c
commit
02847c6849
@ -121,7 +121,7 @@ void SlashCommandHandler::HandleChatCommand(const std::u16string& chat, Entity*
|
||||
if (commandItr != RegisteredCommands.end()) {
|
||||
auto& [alias, commandHandle] = *commandItr;
|
||||
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);
|
||||
} else {
|
||||
// We don't need to tell civilians they aren't high enough level
|
||||
|
Loading…
Reference in New Issue
Block a user