Solved Local effects -> return boolean (true/false)

  • 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.

Lystx

New Member
Jul 4, 2019
3
0
1
24
Hey,
I was wondering if it is possible to create my own permissionsystem in skript.
But i dont want to write 'if {perms::%uuid of player%::*} contains <text>'. So I thought of a local effect

I began like:

local effect if %player% (has|have) permission %text%:
set {_p} to expression-1
set {_perm} to expression-2
set {_uuid} to {_p}'s uuid
if {perms::%{_uuid}%::*} contains {_perm}:
return true
else:
return false



But it didnt work. Is this possible? Can any1 help me pls?

Greetings from Germany :emoji_slight_smile:
 
I know you don't wont but i think you must stay with this

Code:
if {perms::%uuid of player%::*} contains <text>
 
Now I know how to do it:

Code:
expression if %player% has permission %text%:
    return type: boolean
    get:
        set {_p} to expr-1
        set {_perm} to expr-2
        if {PERMS::%{_p}%} contains {_perm}:
            return true
        else:   
            return false
 
Status
Not open for further replies.