options:
p: &3&lCHATCOLOR &7&l>
perm-mesaj: &cBunun icin gerekli yetkiye sahip degilsin!
c-isim: &a&lRenk Menusu
command /renk [<Text>]:
permission: vip.renk
permission message: {@p} {@perm-mesaj}
aliases: cc, ccolor, chatc, chatcolor, colorchat
trigger:
if arg 1 is not set:
wait 3 ticks
open chest with 3 rows named "{@c-isim}" to player
format slot 0 of player with light green dye named "&a&lAcik Yesil" to close then run [make player execute command "/renk &a"]
format slot 1 of player with light blue dye named "&b&lAcik Mavi" to close then run [make player execute command "/renk &b"]
format slot 2 of player with blue dye named "&3&lMavi" to close then run [make player execute command "/renk &3"]
format slot 3 of player with dandelion yellow named "&e&lAcik Sari" to close then run [make player execute command "/renk &e"]
format slot 4 of player with orange dye named "&6&lAltin Sarisi" to close then run [make player execute command "/renk &6"]
format slot 5 of player with red dye named "&c&lAcik Kirmizi" to close then run [make player execute command "/renk &c"]
format slot 6 of player with redstone named "&4&lKirmizi" to close then run [make player execute command "/renk &4"]
format slot 7 of player with gray dye named "&7&lGri" to close then run [make player execute command "/renk &7"]
format slot 25 of player with shears named "&c&lSil" to close then run [make player execute command "/renk sil"]
format slot 26 of player with red wool named "&c&lKapat" to close
if arg 1 is set:
if arg 1 is not "sil":
set {cc.%UUID of player%} to arg 1
send "{@p} &aYeni sohbet rengin&7:&r %{cc.%UUID of player%}%TEST&7!"
else:
delete {cc.%UUID of player%}
send "{@p} &aSohbet rengin silindi."
on chat:
cancel event
if {cc.%UUID of player%} is not set:
broadcast "%player's display name%&7:&r %message%"
else:
broadcast "%player's display name%&7:&r%{cc.%UUID of player%}% %message%"