Add role message on login. (#7)

This commit is contained in:
salt-die
2022-10-31 20:27:19 -05:00
committed by GitHub
parent c1146d473d
commit 8f4463b46a
3 changed files with 6 additions and 15 deletions
+2 -7
View File
@@ -237,7 +237,7 @@ function E:ChangeRole(role)
["tank"]="Tank",
}
E.Role = roles[lower(role)] or "Melee"
print("Role was changed to:", E.Role)
E:Print("Role was changed to "..E.Role)
end
function E:LoadCommands()
@@ -267,12 +267,7 @@ function E:LoadCommands()
self:RegisterChatCommand("farmmode", "FarmMode")
self:RegisterChatCommand("cleanguild", "MassGuildKick")
self:RegisterChatCommand("estatus", "ShowStatusReport")
self:RegisterChatCommand("role", "ChangeRole")
-- This command is added for Ascension. Role checks will be unreliable, but
-- this will allow one to set Role manually.
-- /role expects one of "melee", "caster", "ranged", "tank"
-- and defaults to "melee" if no role is provided.
self:RegisterChatCommand("elvrole", "ChangeRole")
if E.private.actionbar.enable then
self:RegisterChatCommand("kb", AB.ActivateBindMode)