Solved amount of player in a 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 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.
skript: bensku Dev33

how to get amount player in a world?


code_language.skript:
loop all players in world "world":
    add 1 to {_inworld}
message "%{_inworld}%"
   
loop all players:
    if loop-player is in world "world":
        add 1 to {_inworld}
message "%{_inworld}%"
 
No need to loop
code_language.skript:
amount of all players in world “world”
 
It's from Skript
code_language.skript:
>!message "%amount of all players in world ""Kysland""%"
[15:08:38 INFO]: executing 'message "%amount of all players in world ""Kysland""%"'
[15:08:38 INFO]: 0
>pl
[15:08:43 INFO]: Plugins (5): CoreProtect, TitleManager, PickaxeReloader, Skript, ProtocolLib
 
It's from Skript
code_language.skript:
>!message "%amount of all players in world ""Kysland""%"
[15:08:38 INFO]: executing 'message "%amount of all players in world ""Kysland""%"'
[15:08:38 INFO]: 0
>pl
[15:08:43 INFO]: Plugins (5): CoreProtect, TitleManager, PickaxeReloader, Skript, ProtocolLib
skript cant understand it
Screenshot 2018-03-08 21.46.17.png
 
No need to loop
code_language.skript:
amount of all players in world “world”
Looks like you used a different kind of quotes here, I'd edit it in case someone copies it because it won't work and they'd struggle finding the reason.

skript cant understand it
View attachment 1846
Try using the following:
code_language.skript:
send "%amount of all players in world(""Kysland"")%"
 
Status
Not open for further replies.