Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Patch Notes
- - Work on authentication
- - Work on database integration
- - Work on UI
- - Work on backend
- ]]
- local adminrights = false
- local playerName = UnitName("player");
- function OnLoad_Message()
- DEFAULT_CHAT_FRAME:AddMessage("Dumb message inc.", 3.1, 0.9, 0.1);
- end
- -- TEXT UI COMMAND LIST
- SLASH_CONFIG1 = "/ss"
- function SlashCmdList.CONFIG(msg, editbox)
- if msg == "check" then
- DEFAULT_CHAT_FRAME:AddMessage("You've chosen to check for playername permission.", 3.1, 0.9, 0.1);
- if playerName == Daemios then
- DEFAULT_CHAT_FRAME:AddMessage("Your admin rights are enabled.", 3.1, 0.9, 0.1);
- adminrights = true
- else
- DEFAULT_CHAT_FRAME:AddMessage("Your admin rights are not enabled.", 3.1, 0.9, 0.1);
- adminrights = false
- end
- elseif msg == "status" then
- if adminrights == true then
- DEFAULT_CHAT_FRAME:AddMessage("You are currently an admin.", 3.1, 0.9, 0.1);
- else
- DEFAULT_CHAT_FRAME:AddMessage("You are not currently an admin.", 3.1, 0.9, 0.1);
- end
- elseif msg == "name" then
- DEFAULT_CHAT_FRAME:AddMessage("Your name is "..playerName..".", 3.1, 0.9, 0.1);
- else
- DEFAULT_CHAT_FRAME:AddMessage("----------------", 3.1, 0.9, 0.1);
- DEFAULT_CHAT_FRAME:AddMessage("Skillscore by Daemios of Stormreaver.", 3.1, 0.9, 0.1);
- DEFAULT_CHAT_FRAME:AddMessage("You've either entered an invalid option, or you've just typed /ss. Status, check, and name are the only current options.", 3.1, 0.9, 0.1);
- DEFAULT_CHAT_FRAME:AddMessage("----------------", 3.1, 0.9, 0.1);
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement