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