Error

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

GamingCarmelo

New Member
Mar 1, 2021
2
0
1
23
I keep getting the error "There's no world in a periodic event if no world is given in the event"

Here's my code

Code:
every second:
    loop all players:
        if loop-player is in world "GCEarth":
            if {s::%loop-player's uuid%} = 0:
                if {m::%loop-player's uuid%} = 0:
                    if {d::%loop-player's uuid%} = 0:
                        if {h::%loop-player's uuid%} = 5:
                            execute console command "lp user %player% group add Casual"
                            execute console command "lp user %player% group remove Starter"
                            send "&aYou have obtained the &r&a&lSTEM&r&a Rank for reaching 5 Hours played" to loop-player
            if {s::%loop-player's uuid%} = 0:
                if {m::%loop-player's uuid%} = 0:
                    if {d::%loop-player's uuid%} = 0:
                        if {h::%loop-player's uuid%} = 20:
                            execute console command "lp user %player% group add Experinced"
                            execute console command "lp user %player% group remove Casual"
                            send "&aYou have obtained the &r&a&lLEAF&r&a Rank for reaching 20 Hours played" to loop-player
            if {s::%loop-player's uuid%} = 0:
                if {m::%loop-player's uuid%} = 0:
                    if {d::%loop-player's uuid%} = 2:
                        if {h::%loop-player's uuid%} = 2:
                            execute console command "lp user %player% group add Pro"
                            execute console command "lp user %player% group remove Experinced"
                            send "&aYou have obtained the &r&6&1LOG&r&a Rank for reaching 50 Hours played" to loop-player
            if {s::%loop-player's uuid%} = 0:
                if {m::%loop-player's uuid%} = 0:
                    if {d::%loop-player's uuid%} = 3:
                        if {h::%loop-player's uuid%} = 3:
                            execute console command "lp user %player% group add branch"
                            execute console command "lp user %player% group remove pro"
                            send "&aYou have obtained the &r&6&1BRANCH&r&a Rank for reaching 75 Hours played" to loop-player
            if {s::%loop-player's uuid%} = 0:
                if {m::%loop-player's uuid%} = 0:
                    if {d::%loop-player's uuid%} = 4:
                        if {h::%loop-player's uuid%} = 4:
                            execute console command "lp user %player% group add tree"
                            execute console command "lp user %player% group remove branch"
                            send "&aYou have obtained the &r&a&1TREE&r&a Rank for reaching 100 Hours played" to loop-player
            if {s::%loop-player's uuid%} = 0:
                if {m::%loop-player's uuid%} = 0:
                    if {d::%loop-player's uuid%} = 10:
                        if {h::%loop-player's uuid%} = 10:
                            execute console command "lp user %player% group add forest"
                            execute console command "lp user %player% group remove tree"
                            send "&aYou have obtained the &r&2&1FOREST&r&a Rank for reaching 250 Hours played" to loop-player
            if {s::%loop-player's uuid%} = 0:
                if {m::%loop-player's uuid%} = 0:
                    if {d::%loop-player's uuid%} = 20:
                        if {h::%loop-player's uuid%} = 20:
                            execute console command "lp user %player% group add grower"
                            execute console command "lp user %player% group remove forest"
                            send "&aYou have obtained the &r&2&1GROWER&r&a Rank for reaching 500 Hours played" to loop-player
 
Status
Not open for further replies.