Skrip Prefix

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

Sweball77

New Member
May 19, 2024
5
0
1
24
command /prefix <text> <text>:
trigger:
set {Prefix::%player's uuid%} to arg-1
set {Color::%player's uuid%} to arg-2

on chat:
set {_message} to message
set {_player} to player
cancel event
set {_test} to "&%{Color::%player's uuid%}%"
broadcast "%{_test}%%{Prefix::%player's uuid%}% &f%{_player}%: %{_message}%"

For some reason if I type /prefix TEST <red> it doesn't work instead it just says <red>TEST Sweballs77: Hello and even if I do /prefix Test &a It just sends &aTest Sweballs77: Hello. Only if I set the {_test} like this: set {_test} to "<red>" it will say the prefix in red. Does anyone know how I can fix this so that I can type in the color of my prefix in chat?