
Merhabalar, Ben Joka. Öncelikle kendimden bahsedeyim.
Yaşı küçük, sadece chill-out müzik dinleyen,
sadece Türk Kahvesi ve "Cappucino" seven,
Fastfood olarak ise sadece "Whopper" yiyen biriyim.
2017 1 Ocak tarihinden itibaren Minecrafta geri döndüm.
Bundan önce sadece oyuncuydum. Şimdi ise skript yazabiliyorum.

Aslında skript yazmayı bırakmıştım. Zaten bu skripti önceden paketimde yazıp kullanmıştım.
Şimdi ise paylaşıyorum. Skriptte; Sohbet açma, kapama ve temizle özelliklerini derleyip,
Bir çatı yani gui altında topladım. Bu skriptte sadece skQuery 3 gerekli.
Çünkü, guiyi kullanabilmek için bu skaddon gerekli.
Dilerseniz görsellere ve koda geçelim.

Kod:
# Skript By: Joka
command /sohbet [<text>]:
trigger:
if player has permission "chat.admin":
if {kilitli} is not set:
set {kilitli} to false
if arg 1 is not set:
open chest with 3 rows named "&c&lSohbet Menüsü" to player
format slot 11 of player with diamond block named "&aSohbeti aç." with lore "&bSohbeti açar." to close then run [execute player command "sohbet ac"]
format slot 13 of player with diamond block named "&aSohbeti kapat." with lore "&bSohbeti kapatır." to close then run [execute player command "sohbet kapat"]
format slot 15 of player with diamond block named "&aSohbeti temizle." with lore "&bSohbeti temizler." to close then run [execute player command "sohbet temizle"]
if arg 1 is "kapat":
if {kilitli} is true:
send "&c&lWinner&l&fCraft &8&l» &aSohbet zaten kapalı!"
else:
set {kilitli} to true
broadcast "&c&lWinner&l&fCraft &8&l» &aSohbet kapatıldı!"
if arg 1 is "ac":
if {kilitli} is true:
set {kilitli} to false
broadcast "&c&lWinner&l&fCraft &8&l» &aSohbet aktif!"
else:
send "&c&lWinner&l&fCraft &8&l» &aSohbet zaten aktif!"
if arg 1 is "temizle":
loop 180 times:
send " " to players
broadcast "&c&lWinner&l&fCraft &8&l» &aSohbet temizlenmiştir! Iyi oyunlar."
on chat:
if player does not have permission "chat.bypass":
{kilitli} is true:
cancel event
send "&c&lWinner&l&fCraft &8&l» &9Sohbet kapalıdır, &4konuşamazsın!" to player







Son düzenleme: