Help! How to make this loop players work?

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

SupremoSG

Member
Jun 22, 2019
1
0
0
25
I am new to scripting, so I don't know what to do here, I have a plugin of lootboxes, and I am trying to make a script that when executed the command, it sends a loot box to everyone on the server, but it only sends to me.

Code:
command /caixaall:
    permission: supreme.caixaall
    permission message: {@nopermission}
    trigger:
        loop all players:
        make console execute command "/darcaixa %player% Basica 1"
        message "Sent!"
 
I am new to scripting, so I don't know what to do here, I have a plugin of lootboxes, and I am trying to make a script that when executed the command, it sends a loot box to everyone on the server, but it only sends to me.

Code:
command /caixaall:
    permission: supreme.caixaall
    permission message: {@nopermission}
    trigger:
        loop all players:
        make console execute command "/darcaixa %player% Basica 1"
        message "Sent!"
You did not preice another tab when you did a loop all players
code_language.skript:
command /caixaall:
    permission: supreme.caixaall
    permission message: {@nopermission}
    trigger:
        loop all players:
            make console execute command "/darcaixa %loop-player% Basica 1"
            message "Sent!" to loop-player
 
Status
Not open for further replies.