Testing for a permission in a certain world

  • 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 community!

    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.

ummobear

Member
Dec 24, 2017
2
0
0
When a players logs on, I want to remove their permission to fix items in the world named "Factions" and then give it back to them in the worlds Towny and Skyblock, but testing for the permission "essentials.repair" doesn't return true if they have essentials.repair in factions.

code_language.skript:
on join:
    if player has permission "essentials.repair":
        execute the console command "pex user %player% remove essentials.repair"
        execute the console command "pex user %player% add essentials.repair Towny"
        execute the console command "pex user %player% add essentials.repair Skyblock"
 
Status
Not open for further replies.