Discord Thread pvp command

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

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.
i think it was invalid use of brackets
oh
alr
code_language.skript:
on chat:
    if message contains "[item]":
        cancel event
        set {_m::*} to message split at "[item]"
        set {_t::1} to text component from "%player's prefix% %player's displayname% %placeholder "supremetags_tag" from player%:"
        set {_t::2} to text component from {_m::1}
        set {_t::3} to text component from "&7["
        if name of player's tool is set:
            set {_t::4} to text component from name of player's tool
        else:
            set {_t::4} to translate component from player's tool
            set color format of {_t::4} to light blue
        set hover event of {_t::4} to hover event showing player's tool
        set {_t::5} to text component from "&7]&r"
        set {_t::6} to text component from {_m::2}

        # SkBee 2.8.3+
        set {_t} to merge components {_t::*}
        broadcast component {_t}

Posted by: nitayk from the skUnity Discord.
 
code_language.skript:
on chat:
  set chat format to "%player's prefix% %player's displayname% %placeholder "supremetags_tag" from player%: %message%"
    if message contains "[item]":
        cancel event
        set {_m::*} to message split at "[item]"
        set {_t::1} to text component from "%player's prefix% %player's displayname% %placeholder "supremetags_tag" from player%:"
        set {_t::2} to text component from {_m::1}
        set {_t::3} to text component from "&7["
        if name of player's tool is set:
            set {_t::4} to text component from name of player's tool
        else:
            set {_t::4} to translate component from player's tool
            set color format of {_t::4} to light blue
        set hover event of {_t::4} to hover event showing player's tool
        set {_t::5} to text component from "&7]&r"
        set {_t::6} to text component from {_m::2}

        # SkBee 2.8.3+
        set {_t} to merge components {_t::*}
        broadcast component {_t}
try that
wait wait no
the indention is wrong
do you use tabs or space when indenting

Posted by: lim420 from the skUnity Discord.
 
Status
Not open for further replies.