Solved SOLVED PREFIX SKRIPT

  • 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
Don't worry I solved it now :emoji_grinning:
Here's the skript if you guys also wanna use it:

command /prefix <text>:
trigger:
set {Prefix::%player's uuid%} to colored arg-1

on chat:
set {_message} to message
set {_player} to player
set {_color} to {Color::%player's uuid%}
set {_prefix} to {Prefix::%player's uuid%}
replace all "&" with "§" in {Prefix::%player's uuid%}
cancel event
message "%{_prefix}% %{_player}%: %{_message}%" to all players
 
I dont think you need to replace &.
Also making a chat thing should be as simple as
Code:
on chat:
  set chat format to "%{prefix::%player's uuid%}% %player's display name%: %{color::%player's uuid%}%%message%"
 
I dont think you need to replace &.
Also making a chat thing should be as simple as
Code:
on chat:
  set chat format to "%{prefix::%player's uuid%}% %player's display name%: %{color::%player's uuid%}%%message%"
I tried without using the replace thing and it didn't work and therefore if you'd not add the replace thing and all of that it wouldn't work