1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Error

Discussion in 'Skript' started by GamingCarmelo, Mar 20, 2021.

Thread Status:
Not open for further replies.
  1. GamingCarmelo

    GamingCarmelo New Member

    Joined:
    Mar 1, 2021
    Messages:
    2
    Likes Received:
    0
    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 (Text):
    1. every second:
    2.     loop all players:
    3.         if loop-player is in world "GCEarth":
    4.             if {s::%loop-player's uuid%} = 0:
    5.                 if {m::%loop-player's uuid%} = 0:
    6.                     if {d::%loop-player's uuid%} = 0:
    7.                         if {h::%loop-player's uuid%} = 5:
    8.                             execute console command "lp user %player% group add Casual"
    9.                             execute console command "lp user %player% group remove Starter"
    10.                             send "&aYou have obtained the &r&a&lSTEM&r&a Rank for reaching 5 Hours played" to loop-player
    11.             if {s::%loop-player's uuid%} = 0:
    12.                 if {m::%loop-player's uuid%} = 0:
    13.                     if {d::%loop-player's uuid%} = 0:
    14.                         if {h::%loop-player's uuid%} = 20:
    15.                             execute console command "lp user %player% group add Experinced"
    16.                             execute console command "lp user %player% group remove Casual"
    17.                             send "&aYou have obtained the &r&a&lLEAF&r&a Rank for reaching 20 Hours played" to loop-player
    18.             if {s::%loop-player's uuid%} = 0:
    19.                 if {m::%loop-player's uuid%} = 0:
    20.                     if {d::%loop-player's uuid%} = 2:
    21.                         if {h::%loop-player's uuid%} = 2:
    22.                             execute console command "lp user %player% group add Pro"
    23.                             execute console command "lp user %player% group remove Experinced"
    24.                             send "&aYou have obtained the &r&6&1LOG&r&a Rank for reaching 50 Hours played" to loop-player
    25.             if {s::%loop-player's uuid%} = 0:
    26.                 if {m::%loop-player's uuid%} = 0:
    27.                     if {d::%loop-player's uuid%} = 3:
    28.                         if {h::%loop-player's uuid%} = 3:
    29.                             execute console command "lp user %player% group add branch"
    30.                             execute console command "lp user %player% group remove pro"
    31.                             send "&aYou have obtained the &r&6&1BRANCH&r&a Rank for reaching 75 Hours played" to loop-player
    32.             if {s::%loop-player's uuid%} = 0:
    33.                 if {m::%loop-player's uuid%} = 0:
    34.                     if {d::%loop-player's uuid%} = 4:
    35.                         if {h::%loop-player's uuid%} = 4:
    36.                             execute console command "lp user %player% group add tree"
    37.                             execute console command "lp user %player% group remove branch"
    38.                             send "&aYou have obtained the &r&a&1TREE&r&a Rank for reaching 100 Hours played" to loop-player
    39.             if {s::%loop-player's uuid%} = 0:
    40.                 if {m::%loop-player's uuid%} = 0:
    41.                     if {d::%loop-player's uuid%} = 10:
    42.                         if {h::%loop-player's uuid%} = 10:
    43.                             execute console command "lp user %player% group add forest"
    44.                             execute console command "lp user %player% group remove tree"
    45.                             send "&aYou have obtained the &r&2&1FOREST&r&a Rank for reaching 250 Hours played" to loop-player
    46.             if {s::%loop-player's uuid%} = 0:
    47.                 if {m::%loop-player's uuid%} = 0:
    48.                     if {d::%loop-player's uuid%} = 20:
    49.                         if {h::%loop-player's uuid%} = 20:
    50.                             execute console command "lp user %player% group add grower"
    51.                             execute console command "lp user %player% group remove forest"
    52.                             send "&aYou have obtained the &r&2&1GROWER&r&a Rank for reaching 500 Hours played" to loop-player
     
  2. Killerz1243

    Killerz1243 Active Member

    Joined:
    Oct 31, 2019
    Messages:
    78
    Likes Received:
    7
    replace player with loop-player
     
Thread Status:
Not open for further replies.

Share This Page

Loading...