Loop offline players

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

Peterwall

Member
Aug 21, 2017
4
0
0
22
So i have made this skript:
code_language.skript:
every minute in "world":
    loop all players:
        set {kal.%loop-player%} to true
   
on login:
    wait 10 ticks
    if {kal.%player%} is true:
        set {kal.%player%} to false
        if player has permission "skript.premium":
            execute console command "/crate givekey %player% veckans 1"
            broadcast "&2Du fick en OP-Kalender key!"
        else:
            execute console command "/crate givekey %player% roulettekey 1"
            broadcast "&aDu fick en Kalender key!"
    else:
        stop
It runs without any errors but i would like it to also loop offline players.

I use Skript 2.2 V8 Fixes on spigot 1.8.9.
 
While possible, this is a shitty idea and your scripts should never require things like this to work.
 
Status
Not open for further replies.