Core/Scripting: Created a hook for when a player is about to be saved.

This commit is contained in:
Ellie committed 2013-01-02 17:03:57 -08:00
1 parent c6ed15f826
commit c2e610cde7
3 files changed
+11 -1

No files matched your search

+2 -1
View File
@@ -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());
}