Send a message upon loop completion

Discussion in 'Skript' started by Unsalt, May 30, 2018.

Thread Status:
Not open for further replies.
  1. Hello. How do I send a message to the executor after all players have been looped instead of after each player?

    Currently it just sends the message after each player has been looped, which spams the chat:
    Code (Text):
    loop all offline players:
                            set {coins.%loop-value%} to 0
                            send "{@prefix} &aAll coin balances were reset"
     
  2. Two

    Two

    Code (Text):
    loop all offline players:
                            set {coins.%loop-value%} to 0
    send "{@prefix} &aAll coin balances were reset"
    Just put the message after the loop
     
  3. Please use listvariables in the future to prevent a ton of miserable things :).
     
    • Agree Agree x 1
Thread Status:
Not open for further replies.