Solved Console is <none>

  • 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 community!

    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.

xdprojosh1

Member
May 31, 2017
23
0
0
I got a broadcast script and I want to change <none> to console. How do I do that?

When i execute the command with Console, it will say <none>
 
Last edited:
code_language.skript:
command /say [<text>]:
    trigger:
        broadcast "%player% -> %arg-2%"
 
code_language.skript:
command /say [<text>]:
     trigger:
         set {_player} to "%player%"
        "%{_player}%" is "<none>":
            set {_player} to "console"
        broadcast "%{_player}% -> %arg-1%"
 
  • Like
Reactions: xdprojosh1
code_language.skript:
command /say [<text>]:
     trigger:
         set {_player} to "%player%"
        "%{_player}%" is "<none>":
            set {_player} to "console"
or simply
code_language.skript:
broadcast "%command sender% -> %arg-1%"
 
Status
Not open for further replies.