Hi! I'm trying to help out my friend with the skripts on her server after the original coder ghosted her, and while the skripts thye mad work for the most part, we can't figure out why the tab role section of it is breaking and displaying hex codes as plain text. I've included the sections related to the roles in here in hopes someone all help me solve why its not working. This is my first time working with skripts as well:
command /setrole [<player>] [<text>]:
permission: operator
trigger:
set {lore.role.%arg-1's uuid%} to "%arg-2%"
send formatted "{@Prefix} &7You set &b%arg-1%'s &7role to&8: '%arg-2%'" to player
stop
# Set the ROLE of a PLAYER to NOTHING when they JOIN
on join:
if {lore.role.%player's uuid%} is not set:
set {lore.role.%player's uuid%} to "&f"
# Set the TABLIST name of a PLAYER
on join:
set tablist name of player to "%{lore.role.%player's uuid%}% &f%player%"
command /setrole [<player>] [<text>]:
permission: operator
trigger:
set {lore.role.%arg-1's uuid%} to "%arg-2%"
send formatted "{@Prefix} &7You set &b%arg-1%'s &7role to&8: '%arg-2%'" to player
stop
# Set the ROLE of a PLAYER to NOTHING when they JOIN
on join:
if {lore.role.%player's uuid%} is not set:
set {lore.role.%player's uuid%} to "&f"
# Set the TABLIST name of a PLAYER
on join:
set tablist name of player to "%{lore.role.%player's uuid%}% &f%player%"