AhmetCanSARAC
Kömür Madencisi
- En iyi cevaplar
- 0
Bu gün spigotta buldugum admin chati paylasicam galiba SkQuery lazim denemedim.
Bir kismi turkce bu arada dikkatimi cekmedi degil
PHP:
variables:
{adminchat.%player%} = false
command /adminchat:
permission: adminchat.chat
permission message: &5[&cAdminSohbet&5] &3Yetersiz Yetki!
trigger:
open chest with 1 rows named "&cAdmin Chat" to player
format slot 0 of player with green dye named "&aJoin!" with lore "&7Join to admin chat!" to close then run "pc %player% adminchatjoin"
format slot 1 of player with rose red named "&cLeave!" with lore "&7Leave admin chat!" to close then run "pc %player% adminchatleave"
format slot 8 of player with red wool named "&4Close the menu!" with lore "&7Close menu!" to close
command /adminchatjoin:
permission: adminchat.chat
permission message: &5[&cAdminChat&5] &3No Permission!
trigger:
if {adminchat.%player%} is false:
set {adminchat.%player%} to true
message "&5[&cAdminChat&5] &3You have joined admin chat!"
else:
message "&5[&cAdminChat&5] &3You're already joined admin chat!"
command /adminchatleave:
permission: adminchat.chat
permission message: &5[&cAdminChat&5] &3No Permission!
trigger:
if {adminchat.%player%} is true:
set {adminchat.%player%} to false
message "&5[&cAdminChat&5] &3You have left admin chat!"
else:
message "&5[&cAdminChat&5] &3You're not in admin chat!"
on chat:
if {adminchat.%player%} is set:
cancel event
loop all players:
if {adminchat.%loop-player%} is true:
send "§aAdmin Chat §8§l┃ §7%player's name% §8➽ §f%coloured message%" to loop-player
stop
command /pc [<player>] [<text>]:
permission: play.command
trigger:
make arg 1 execute "/%arg 2%"
Bir kismi turkce bu arada dikkatimi cekmedi degil