Sohbeti /sohbet komutuyla açıp kapatırsınız.
Eğer sohbeti kapatmak için oyunculara bir sebep belirtmek istiyorsanız /sohbet sebep formatını kullanabilirsiniz. gerekliPerm ayarı ile /sohbet'i kimlerin kontrol edebileceğini ayarlarsınız; bypassKilit ayarı ile sohbet kapalıyken bile kimlerin konuşabileceğini ayarlarsınız.
not: Skript, @BayRotasizHD 'nin bu isteği üzerine tasarlanmıştır.
Kod:
options:
gerekliPerm: rSK.SohbetAdmin
bypassKilit: rSK.SohbetVIP
K: &6&lKullanım &8» &7
D: &6&lDuyuru &8» &7
H: &4&lHata &8» &7
on chat:
if {Sohbet} is 1:
if player doesn't have permission "{@bypassKilit}":
cancel event
message "{@H}Sohbet, &6%{KapatanKisi}% &7tarafından kapatılmış."
if {Sebep} is set:
message "&7Kapatılma sebebi, &6%{Sebep}%"
command /sohbet [<text>]:
trigger:
if arg 1 isn't set:
if {Sohbet} is not set:
broadcast "{@D}Sohbet, &6%player% &7tarafından kapatıldı!"
set {Sohbet} to 1
else:
broadcast "{@D}Sohbet, &6%player% &7tarafından tekrar açıldı!"
clear {Sohbet}
else:
if {Sohbet} is not set:
broadcast "{@D}Sohbet, &6%player% &7tarafından kapatıldı!"
broadcast "&7&lSEBEP: &6%arg 1%"
set {KapatanKisi} to player
set {Sohbet} to 1
set {Sebep} to "%arg 1%"
else:
broadcast "{@D}Sohbet, &6%player% &7tarafından tekrar açıldı!"
broadcast "&7&lNOT: &6%arg 1%"
clear {KapatanKisi}
clear {Sohbet}
clear {Sebep}