Played-a-Life

This commit is contained in:
Tercio Jose
2022-11-29 17:30:51 -03:00
parent 82ec1fbcac
commit 2dff960030
+2 -4
View File
@@ -3126,10 +3126,8 @@ function Details.GetPlayTimeOnClassString()
return "|cffffff00Time played this class (" .. expansionName .. "): " .. days .. " " .. hours .. " " .. minutes
end
local timePlayerFrame = CreateFrame("frame")
timePlayerFrame:RegisterEvent("TIME_PLAYED_MSG")
timePlayerFrame:SetScript("OnEvent", function()
--C_Timer.After(0, function() print(Details.GetPlayTimeOnClassString()) end)
hooksecurefunc("ChatFrame_DisplayTimePlayed", function()
print(Details.GetPlayTimeOnClassString())
end)
--game freeze prevention, there are people calling UpdateAddOnMemoryUsage() making the game client on the end user to freeze, this is bad, really bad.