Your EVENT_ADD_ON_LOADED is commented so I assume your addon never loads properly.
Use EVENT_ADD_ON_LOADED to Init once, it will fire for each addon so make sure you check for your addon''s name and after that unregister this event again!
In there register the EVENT_PLAYER_ACTIVATED event (this will fire again and again, if not unregistered, on EACH zone change with loading screen, teleport etc.).
Basically addons should always start like this, unless you need another usecase. Else your addons will init before other addons/dependencies like LibAddonMenu and LibChatMessage etc. are loaded and initialized!
Lua Code:
EVENT_MANAGER:RegisterForEvent(GOLDMetrics.name, EVENT_ADD_ON_LOADED, function(eventId, addonName)
--any of the other addons currently loading?
if addonName ~= GOLDMetrics.name then return end
--my addon laoding
EVENT_MANAGER:UnregisterForEvent(GOLDMetrics.name, EVENT_ADD_ON_LOADED)
--Init saved vars etc.
local settings = ZO_SavedVars:New*
--->Before EVENT_ADD_ON_LOADED the savedvars will be nil! So only assign them here, afterwards
--Register other events
EVENT_MANAGER:RegisterForEvent(GOLDMetrics.name, EVENT_PLAYER_ACTIVATED, function(eventId, primary)
----After chat has been initialized and player loaded into the ingame world
end)
end)