execute a command when there is "x" player?

  • 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 community!

    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.

Lubuntu

New Member
Jan 9, 2018
5
0
0
so I am creating a minigame system using skript,but I want to do a command that is in my server(/gamestart) so basically I am not sure did skript had the feature but basically I want if a world have "x" player,then execute the command "/gamestart".and apparently I don't think I can get any result with this in google,can someone help me please?
 
If you use bungeecord, Skellet has a "size of all bungeecord players on server such and such"
You could also just loop the players and add 1 to a temp counter. When it hits your number, exit loop and execute the command.
 
code_language.skript:
amount of players in world "worldname"
That should get you the number of players in the world, which you can use to check if it has as many as you want to run the minigame.
 
  • Like
Reactions: Wynnevir
Status
Not open for further replies.