command /chatkapat [<text>]:
aliases: chatac, chatkapa
permission: chat.kapat
trigger:
if arg 1 is set:
set {_i} to arg 1
else:
set {_i} to player's world
if {chat::%{_i}%} is set:
delete {chat::%{_i}%}
broadcast "&9%{_i}% &fdunyasi icin chat &aAKTIF!" #<---- Chat acma mesaji. Mesaji herkese gondermesini istemiyorsan broadcast yerine send kullanabilirsin, sadece komudu kullanana gonderir. send "MESAJ" to ops and console yazarsan oplara ve konsola gonderir.
else:
set {chat::%{_i}%} to false
broadcast "&9%{_i}% &fdunyasi icin chat &cKAPALI!" #<---- Chat kapama mesaji. Mesaji herkese gondermesini istemiyorsan broadcast yerine send kullanabilirsin, sadece komudu kullanana gonderir. send "MESAJ" to ops and console yazarsan oplara ve konsola gonderir.
on chat:
set {_i} to player's world
if {chat::%{_i}%} is set:
if player doesn't have permission "chat.konus": #<---- Chat kapaliyken konusabilme permi.
cancel event
send "&cBu dunya icin chat kapatilmis!" #<---- Chatin kapali oldugunu soyleyen mesaj.