Hi , im making a skirpt for screenshare, and I want when I execute the command /ss [player] it changes the names in the tablist
For example
[Staff] Player
[Frozen] Player
This is my code
command /ss <player>:
trigger:
if {ssspawn} is set:
if argument has permission "staff":
if arg-1 is set:
if {check.%argument%} is false:
set {check.%argument%} to true
make console execute command "{@AfkAddPerm}"
clear player's inventory
clear argument's inventory
teleport player to {controllospawn}
teleport argument to {controllospawn}
set player tab name to "staff %player%"
set argument tab name to "frozen %player%"
For example
[Staff] Player
[Frozen] Player
This is my code
command /ss <player>:
trigger:
if {ssspawn} is set:
if argument has permission "staff":
if arg-1 is set:
if {check.%argument%} is false:
set {check.%argument%} to true
make console execute command "{@AfkAddPerm}"
clear player's inventory
clear argument's inventory
teleport player to {controllospawn}
teleport argument to {controllospawn}
set player tab name to "staff %player%"
set argument tab name to "frozen %player%"