elseif event == "PLAYER_LOGIN" then
-- TODO do class detection and only create necessary buttons
stancebar:UnregisterAllEvents();
+ local _, class = UnitClass("player");
+ if class ~= "PALADIN" and class ~= "DRUID" then
+ return
+ end
for i=1,4 do
create(i, self, self[i-1]);
end