ChestCommands Gibi /Renk Sistemi !

Shingeki

Seviye 0
Seviye 0
5 Haziran 2018
123
0
0
23
Deneyim Puanı
0
Kod:
#ChatRengi
#ChatRengi
#ChatRengi

command /renk:
    permission : vip.renk
    permission message : &4Bunu kullanmaya yetkin yok
    trigger:
        open chest with 3 rows named "//&d&oVip Yazi Rengi Menusu&r//" to player
        format slot 0 of player with red glass pane named "&cAcik Kirmizi" to close then run "renkayarla %player% Light Red"
        format slot 1 of player with light blue glass pane named "&3Acik Mavi" to close then run "renkayarla %player% Cyan"
        format slot 2 of player with purple glass pane named "&5Mor" to close then run "renkayarla %player% Purple"
        format slot 3 of player with light green glass pane named "&aAcik Yesil" to close then run "renkayarla %player% Light Green"
        format slot 4 of player with light gray glass pane named "&7Acik Gri" to close then run "renkayarla %player% Light Gray"
        format slot 5 of player with yellow glass pane named "&eSari" to close then run "renkayarla %player% Yellow"
        format slot 6 of player with green glass pane named "&2Yesil" to close then run "renkayarla %player% Green"
        format slot 7 of player with blue glass pane named "&1Mavi" to close then run "renkayarla %player% Blue"
        format slot 26 of player with white glass pane named "&f&l&oRengi Sifirla" to close then run "renksifirla %player%"
command /renkayarla <player> <text>:
    usage : /renkayarla [oyuncu] [renk]
    executable by : console
    trigger:
        if arg 1 is set:
            set {chatrengi.%arg 1%} to arg 2
            wait 3 ticks
            message "&6[&5VipRenk&6]&a Istedigin renk basariyla &5%{chatrengi.%arg 1%}%&a olarak ayarlandi" to arg 1
on chat:
    if {chatrengi.%player%} is set:
        set message to "<%{chatrengi.%player%}%>%message%"

command /renksifirla <player>:
    executable by: console
    trigger:
        delete {chatrengi.%arg 1%}
        message "&6[&5VipRenk&6]&a Konusma rengi basariyla sifirlandi" to arg 1