please help me. How to get all bungee online 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!

yangwang

Member
Aug 15, 2017
1
0
0
30
installed Skellett and SkellettProxy
code_language.skript:
command /kingsync:
    permission: kingsync.admin
    trigger:
        loop all bungeecord players:  <<error
           message "%loop-player% online"
 
I doubt that syntax exists at all lol
What do you want, exactly?
Get the name of all online players on the bungeecord?

code_language.skript:
loop all bungeecord servers:
    set {_players.%loop-value%::*} to all bungeecord players on server "%loop-value%"

...I think? Im not exactly sure. That's exactly how it appears on the docs. You get all players on a single server on its variable {_players.%server%::*}

Or you could also try
code_language.skript:
loop all bungeecord servers:
    add all bungeecord players on server "%loop-value%" to {_players::*}

to get all the players that are connected. You won't know in which server, tho.