This
Code:
local classabbrev = {
DRUID = "DR",
HUNTER = "HT",
MAGE = "MG",
PALADIN = "PD",
PRIEST = "PT",
ROGUE = "RG",
SHAMAN = "SH",
WARLOCK = "WL",
WARRIOR = "WR",
DEATHKNIGHT = "DK",
};
is absolutely correct. You're using it wrong. You can't put what I said in a tag (at least not the way you are trying). You have to put it in an OnUpdate function.