mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-07-04 02:29:54 +00:00
Update DEVGMCommands.cpp (#1840)
This commit is contained in:
parent
a5d0788488
commit
9524198044
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user