Execute skript the entire time that more than 15 players are online.

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

gausts

Member
Nov 12, 2022
1
0
1
28
This is for a random item drop skript. I want to make sure that it only works while the server is active, with more than 15 players online, I've looked for a while but can't seem to find anything that works properly.

every 3 minutes:
execute console command "consolecommand"
stop

every 12 minutes:
execute console command "consolecommand"
stop

every 30 minutes:
execute console command "consolecommand"
stop
 
Code:
every bla bla:
    amount of all players is more than 14 # triggers when there are more than 14 players
    execute command "someconsolecommand"
 
This is for a random item drop skript. I want to make sure that it only works while the server is active, with more than 15 players online, I've looked for a while but can't seem to find anything that works properly.

every 3 minutes:
execute console command "consolecommand"
stop

every 12 minutes:
execute console command "consolecommand"
stop

every 30 minutes:
execute console command "consolecommand"
stop
try this
Code:
while amount of all players is more than 14:
    execute console command ""
    wait (cooldown) (seconds, minutes, hours) #example wait 40 seconds
 
try this
Code:
while amount of all players is more than 14:
    execute console command ""
    wait (cooldown) (seconds, minutes, hours) #example wait 40 seconds
Its bad cuz you will need to put this in on load or something and when you reload it will still loop and to stop you will need to restart server so bad and dont use :emoji_angry:
 
Status
Not open for further replies.