Permission Based Responses!


#1

I would like to create simple command, that allows people to check what permission level they are (mod, sub & etc). Is there away to pull that data for custom script work?

Thank you in advance,

Age


#2

If you are creating your own module, there is a function that can return the name of a user’s permission level $.getUserGroupName(username). Calling that in your module should return a string containing the user’s group.


#3

Thank you master of pants! This is actually what I am looking for!


#4

If you want to keep things simple, you can add this to a custom command response.

(runcode $.say("You currently have " + $.getUserGroupName(event.getSender()) + " permissions.");)


#5

Thank you! I pretty sure I can use this to alter some responses in my module, I wanted the command to have difference response per permission.

Appreciated!