World Skripts!

  • 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.
I recommend spending some time reading over the docs before asking questions here.
The docs have PLENTY of things that will answer most of your questions.
Ex: You can check the world of the player in commands/events to make sure only to fire effects if the player is in a specific world.
 
I havent really tested it but i hope it works:

Code:
command /fly:
    trigger:
        if player is in world "hub":
            if {fly.%player%} is true:
                set {fly.%player%} to false
                message "&cYou have disabled flight."
                set player's flight mode to true
                stop
            if {fly.%player%} is false:
                set {fly.%player%} to true
                message "&aYou have enabled flight."
                set player's flight mode to false
                stop
       
        if player is in world "survival":
            message "&cSorry, but you are not allowed to fly here!"
           
           
on world change:
    set {fly.%player%} to false
 
Status
Not open for further replies.