Color codes are reset in some messages. Why? Example:
https://prnt.sc/mhlvwy
Message's code:
https://prnt.sc/mhlvwy
Message's code:
Code:
function setColor(p: player , t: text , t2: text):
if {_t} is "isim":
if {_t2} is "acik mavi":
send "{@prefix} &7İsim rengin &bAçık Mavi &7olarak ayarlandı." to {_p}
send "{@prefix} &7Yeni isim görünümün: %colored {_p}'s displayname%" to {_p}
stop
else if {_t2} is "turkuaz":
send "{@prefix} &7İsim rengin &9Turkuaz &7olarak ayarlandı." to {_p}
send "{@prefix} &7Yeni isim görünümün: %colored {_p}'s displayname%" to {_p}
stop
else if {_t2} is "pembe":
send "{@prefix} &7İsim rengin &dPembe &7olarak ayarlandı." to {_p}
send "{@prefix} &7Yeni isim görünümün: %colored {_p}'s displayname%" to {_p}
stop
else if {_t2} is "acik kirmizi":
send "{@prefix} &7İsim rengin &cAçık Kırmızı &7olarak ayarlandı." to {_p}
send "{@prefix} &7Yeni isim görünümün: %colored {_p}'s displayname%" to {_p}
stop
else if {_t2} is "acik yesil":
send "{@prefix} &7İsim rengin &aAçık Yeşil &7olarak ayarlandı." to {_p}
send "{@prefix} &7Yeni isim görünümün: %colored {_p}'s displayname%" to {_p}
stop
else if {_t2} is "turuncu":
send "{@prefix} &7İsim rengin &6Turuncu &7olarak ayarlandı." to {_p}
send "{@prefix} &7Yeni isim görünümün: %colored {_p}'s displayname%" to {_p}
stop
else if {_t} is "sohbet":
if {_t2} is "acik mavi":
set {chatcolor::%{_p}%} to "&b"
send "{@prefix} &7Sohbet rengin &bAçık Mavi &7olarak ayarlandı." to {_p}
stop
else if {_t2} is "turkuaz":
set {chatcolor::%{_p}%} to "&c"
send "{@prefix} &7Sohbet rengin &9Turkuaz &7olarak ayarlandı." to {_p}
stop
else if {_t2} is "pembe":
set {chatcolor::%{_p}%} to "&d"
send "{@prefix} &7Sohbet rengin &dPembe &7olarak ayarlandı." to {_p}
stop
else if {_t2} is "acik kirmizi":
set {chatcolor::%{_p}%} to "&c"
send "{@prefix} &7Sohbet rengin &cAçık Kırmızı &7olarak ayarlandı." to {_p}
stop
else if {_t2} is "acik yesil":
set {chatcolor::%{_p}%} to "&a"
send "{@prefix} &7Sohbet rengin &aAçık Yeşil &7olarak ayarlandı." to {_p}
stop
else if {_t2} is "turuncu":
set {chatcolor::%{_p}%} to "&6"
send "{@prefix} &7Sohbet rengin &6Turuncu &7olarak ayarlandı." to {_p}
stop