Hi, I'm making a per world chat system for my server but when I tried to do send formatted it only did color codes, not hex. I realised that Skript uses a different way of recognising hex codes so I need a way to convert &# to <## and add > 6 letters after, so I could convert things such as �FF to <##0000ff>
My code:
My code:
Code:
on join:
while player is online:
set {rank::%player's uuid%} to placeholder "luckperms_prefix" # Addon called Ersatz to get placeholders out of skript
on chat:
cancel event
loop all players:
if loop-player's world is player's world:
send formatted "%{rank::%player's uuid%}%%player%&6: %message%" to loop-player