Variable for number of players in a certain world?

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

TimmoPlays

New Member
Apr 5, 2018
9
0
0
I'm working on a GUI menu for a mini game that I'm scripting and I was wondering if there's any variable that is replaced with the number of players in a specific world. Thanks!

This is what I have so far:

code_language.skript:
command /battles:
    trigger:
        open chest with 6 rows named "&8Battles" to player
        wait 1 tick
        format slot 10 of player with iron sword named "&eClassic" with lore "&81v1||||&7Classic 1v1 battle with an iron||&7sword and iron armour.||||&f%THE VARIABLE I NEED% playing."
 
code_language.skript:
#More than 1 worlds
set {variable} to number of players in world "WORLD1" and "WORLD2"

#Only 1 world
set {variable} to number of players in world "WORLD"
 
Status
Not open for further replies.