mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Core/Commands: Allow .save command to save targeted player for GMs
This commit is contained in:
@@ -131,7 +131,10 @@ bool ChatHandler::HandleSaveCommand(const char* /*args*/)
|
||||
// save GM account without delay and output message
|
||||
if (m_session->GetSecurity() > SEC_PLAYER)
|
||||
{
|
||||
player->SaveToDB();
|
||||
if (Player *target = getSelectedPlayer())
|
||||
target->SaveToDB();
|
||||
else
|
||||
player->SaveToDB();
|
||||
SendSysMessage(LANG_PLAYER_SAVED);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user