[SOLVED] Skript Clear Chat Code.

Discussion in 'Skript' started by DrMoose, Apr 20, 2017.

  1. Im making a simple script core for my servers that will consist of some admin commands and things like that, i wanted to know, how can i send a message to everyone in the server, not just the player that opens a gui or does a command. Need this for a clear chat part ( command ).
  2. Ok its easy , for send message of all players is necessari use the variable loop all players.
    Code (Text):
    command /Message [<text>]:
             loop all players:
                send "%arg 1%"  to loop-player

    For clear chat use more brodcast ! For util spaces !
  3. Oh okay, thanks!
  4. mathhulk

    mathhulk Retired Moderator

    You can broadcast text using:
    Code (Text):
    broadcast "This is sent to every player"
  5. Yes but is not profesional !
  6. What you did isn't professional, such as you used a loop when you can just do:
    Code (Text):
    send "the message" to all players
    If you want it to be in a specific world, you an do:
    Code (Text):
    send "the message to all players in world("world name here")

    #or with the broadcast effect:
    broadcast "the message" in world("world name here")
    • Winner Winner x 1
  7. That is going to work too, but you still need to loop the comand itself around 200 times or even more to clear the chat properly.