Untitled
local function HideRealmName(self) if (not strfind(self.unit, "nameplate") or self:IsForbidden()) then return end if ShouldShowName(self) then if (UnitIsPlayer(self.unit)) then print("aa") self.name:SetText(UnitName(self.unit)) end end end hooksecurefunc("CompactUnitFrame_UpdateName", HideRealmName)