Merhaba değerli forum üyeleri, sizlere basit ve kullanışlı sohbet skriptini tanıtacağım.
Bu sistem sayesinde oyuncularınız sohbet komutlarının detaylarını tek komutla öğrenebilecek.
Sistemin doğru çalışması için lütfen EssentialsX kurmayı unutmayın.
(Benzeri farklı eklentilerde kullanılabilir.)
Oyuncularınız /mesaj, /sohbet engel, /sohbet engellist, /sohbet temizle komutlarını kullanabilir.
(Bu komutların kullanılabilmesi için(sohbet temizle hariç) Essentials yetkilerinin ilgili gruba verilmesi gereklidir.)
Yetkilileriniz ise /sohbet sil(sohbet.sil) ve /sohbet kapat/aç(sohbet.kapatac) komutlarını kullanabilir.
Skript 1.16.5 sürümünde test edilmiş ve herhangi bir sorun tespit edilmemiştir.
Sisteme Dair Görseller
Kod:
command /sohbet [<text>] [<text>]:
aliases: msg, mesaj, pm
trigger:
if arg-1 is not set:
send "", "&6Sunucu &8» &eSohbet Komutları", "", " &8- &f/Mesaj <oyuncu> <mesaj> &7oyuncuya özel mesaj gönderir.", " &8- &f/Sohbet engel <oyuncu> &7oyuncuyu sohbetten engeller.", " &8- &f/Sohbet engellist &7engelli oyuncuları listeler.", " &8- &f/Sohbet temizle &7kendi sohbetini temizler.", " &8- &f/Sohbet sil &7sunucu sohbetini temizler. &8(&cYetkili&8)", " &8- &f/Sohbet kapat/aç &7sunucu sohbetini kapatır/açar. &8(&cYetkili&8)" and "" to player
if arg-1 is "engel":
if arg-2 is set:
execute player command "/ignore %arg-2%"
else if arg-1 is "temizle":
loop 200 times:
send "" to player
send "&6Sunucu &8» &fKendi sohbetini başarıyla &atemizledin." to player
else if arg-1 is "sil":
if player has permission "sohbet.sil":
loop 200 times:
send "" to players
send "&6Sunucu &8» &fSunucu sohbetini &a%player% &ftemizledi." to players
else:
send "&6Sunucu &8» &fBunun için &cyetkili &folmalısın." to player
else if arg-1 is "kapat":
if player has permission "sohbet.kapatac":
set {kilitli} to true
send "&6Sunucu &8» &fSunucu sohbeti &ckapatıldı&f." to players
else:
send "&6Sunucu &8» &fBunun için &cyetkili &folmalısın." to player
else if arg-1 is "aç":
if player has permission "sohbet.kapatac":
set {kilitli} to false
send "&6Sunucu &8» &fSunucu sohbeti &aaçıldı&f." to players
else:
send "&6Sunucu &8» &fBunun için &cyetkili &folmalısın." to player
else if arg-1 is "engellist":
execute player command "ignore"
else if arg-1 is set:
if arg-2 is set:
execute player command "pm %arg-1% %arg-2%"
on chat:
if {kilitli} is true:
if player doesn't have permission "sohbet.konus":
cancel event
send "&6Sunucu &8» &fSunucu sohbeti kapalı, konuşamazsın!" to player