Skip to content

Commit

Permalink
Add a warning to existing users
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Sep 5, 2021
1 parent 8a65aff commit 73ca211
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BetterWorldQuests.toc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
## Title: Better World Quests
## Notes: Improves the World Quest POIs on the map
## OptionalDeps: LibStub, CallbackHandler-1.0, HereBeDragons
## SavedVariables: BetterWorldQuestsMigrate

## X-Curse-Project-ID: 302035
## X-WoWI-ID: 24797
Expand All @@ -27,3 +28,4 @@ Argus/Title.lua
Argus/Vindicaar.lua
Argus/WorldFlightMap.lua

migrate.lua
21 changes: 21 additions & 0 deletions migrate.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
local name = ...

local Handler = CreateFrame('Frame')
Handler:RegisterEvent('ADDON_LOADED')
Handler:SetScript('OnEvent', function(_, _, addon)
if addon ~= name then
return
end

if BetterWorldQuestsMigrate then
return
else
BetterWorldQuestsMigrate = true
end

print('|cff90ffffBetterWorldQuests|r no longer has helpers for quests.')
print('Please see the addon named "Quest Automation" on CurseForge/WoWInterface.')
print('This message will not be shown again.')

Handler:UnregisterEvent('ADDON_LOADED')
end)

0 comments on commit 73ca211

Please sign in to comment.