Permission Checker

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Aug 19, 2017
10
0
0
34
Hi there,
I am making an administrator script, when you run this command, it will grab permissions from a user. I am using GroupManager.

For example, if you run the command, it will run manucheckp player permission and the second line of the respond contains "This user inherits the permission from" then it will give back a respond "True" if the second line responds "The player doesn't have access to that permission" it will respond "False".

Is this possible? It was a little hard to explain so ill try make it clear.
The responses from /manucheckp (player) (permission) can be:
code_language.skript:
Line1: The user inherits the permission from group: g:owner
Line2: Permission Node: *
if it responds like this, I want to say in chat "True"
code_language.skript:
Line1: The player doesn't have access to that permission
If it responds like this, I want it to say in chat "False"

Thank you and any help is appreciated.
 
Status
Not open for further replies.