mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +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()) {
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user