Core/Scripting: Created a hook for when a player is about to be saved.
This commit is contained in:
1 parent
c6ed15f826
commit
c2e610cde7
3 files changed
+11
-1
No files matched your search
@@ -1753,7 +1753,8 @@ void Player::Update(uint32 p_time)
|
||||
{
|
||||
if (p_time >= m_nextSave)
|
||||
{
|
||||
// m_nextSave reseted in SaveToDB call
|
||||
// m_nextSave reset in SaveToDB call
|
||||
sScriptMgr->OnPlayerSave(this);
|
||||
SaveToDB();
|
||||
sLog->outDebug(LOG_FILTER_PLAYER, "Player '%s' (GUID: %u) saved", GetName().c_str(), GetGUIDLow());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user