localLibNP=LibStub("LibNameplate-1.0",true)functionMyAddon:OnEnable()LibNP.RegisterCallback(self,"LibNameplate_NewNameplate")endfunctionMyAddon:LibNameplate_NewNameplate(_,plate)localplateName=LibNP:GetName(plate)localplateLevel=LibNP:GetLevel(plate)print(plateName.." is on screen!","They're level "..plateLevel..".")end
Comments