Update DEVGMCommands.cpp (#1840)

This commit is contained in:
David Markowitz 2025-06-29 14:23:11 -07:00 committed by GitHub
parent a5d0788488
commit 9524198044
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1640,7 +1640,7 @@ namespace DEVGMCommands {
for (auto* const player : PlayerManager::GetAllPlayers()) {
auto* const pCharacterComponent = player->GetComponent<CharacterComponent>();
if (pCharacterComponent) pCharacterComponent->SetPvpEnabled(args == "start");
if (pCharacterComponent) pCharacterComponent->SetPvpEnabled(true);
Game::entityManager->SerializeEntity(player);
}
const auto msg = u"Pvp has been turned on for all players by " + GeneralUtils::ASCIIToUTF16(characterComponent->GetName());