Sohbet Yönetim Skripti Tanıtımı
Bu Skript, Minecraft sunucunuzdaki sohbet akışını kontrol etmek, reklamları engellemek ve düzeni sağlamak için tasarlanmıştır.
Temel Özellikler
- Sohbet Kilidi: Sohbeti tüm oyunculara kapatıp açabilme.
- Yavaş Mod (Slowmode): Mesajlar arasına bekleme süresi koyma.
- Otomatik Temizleme: Sohbet geçmişini tek komutla silme.
- Reklam Engelleme: Link içeren mesajları otomatik olarak engelleme.
- Görsel Bildirimler: Ekran ortasında yazı (Title) ve ses efektleri.
Komut Listesi
| Komut | Açıklama | Yetki (Permission) |
|---|---|---|
| /sohbet | Tıklanabilir yönetim menüsünü açar. | sohbet.admin |
| /sohbet ac | Sohbeti herkes için aktif eder. | sohbet.admin |
| /sohbet kapat | Sohbeti kilitler (Sadece yetkililer yazar). | sohbet.admin |
| /sohbet temizle | Sohbeti tüm oyuncular için temizler. | sohbet.admin |
| /sohbet yavasmod | 3 saniye aralıklarla yazma sınırını açar/kapatır. | sohbet.admin |
Kurulum Talimatları
- Sunucunuzda Skript plugininin yüklü olduğundan emin olun.
- plugins/Skript/scripts klasörüne gidin.
- Yeni bir metin belgesi oluşturup adını sohbet.sk yapın.
- Size verilen kodları bu dosyanın içine yapıştırın ve kaydedin.
- Oyun içinden /sk reload sohbet.sk komutunu çalıştırın.
Not: Bu sistem Minecraft 1.16 ve üzeri sürümlerde en yüksek performansta çalışır.
# ======================================================
# Gelişmiş Sohbet Yönetim Sistemi - Premium Görünüm
# Yetki: sohbet.admin
# ======================================================
options:
p: &8[&6&lSERVER&8] &8»
y: sohbet.admin
hata: &c&lHATA! &7Bu yetkiye sahip değilsin.
s: &e&lBİLGİ &8» # Sistem duyuru ön eki
sm_sure: 3 seconds
variables:
{sohbet::durum} = "Açık"
{sohbet::kilit} = false
{sohbet::yavasmod} = false
command /sohbet []:
permission: {@y}
permission message: {@hata}
trigger:
if arg 1 is not set:
send " " to player
send " &6&lSOHBET YÖNETİM PANELİ " to player
send "&8&m------------------------------" to player
send "&b➤ &fSohbeti &aAÇ &7(Tıkla)" to player
send "&b➤ &fSohbeti &cKAPAT &7(Tıkla)" to player
send "&b➤ &fSohbeti &eTEMİZLE &7(Tıkla)" to player
send "&b➤ &fSohbet &dYAVAŞ MOD &7(Tıkla)" to player
send "&8&m------------------------------" to player
play sound "block.note_block.pleasance" with volume 0.5 to player
else if arg 1 is "kapat" or "kilitle":
set {sohbet::kilit} to true
set {sohbet::durum} to "&cKilitli"
broadcast " "
broadcast "{@p} &7Sohbet &c&lKAPATILDI!"
broadcast "{@p} &fYetkili: &e%player%"
broadcast " "
loop all players:
send title "&c&lSOHBET KAPATILDI" with subtitle "&fSadece yetkililer yazabilir." to loop-player for 3 seconds
play sound "block.chest.close" with volume 1 to loop-player
else if arg 1 is "aç" or "ac":
set {sohbet::kilit} to false
set {sohbet::durum} to "&aAçık"
broadcast " "
broadcast "{@p} &7Sohbet &a&lAÇILDI!"
broadcast "{@p} &fArtık herkes yazabilir, iyi oyunlar."
broadcast " "
loop all players:
send title "&a&lSOHBET AÇILDI" with subtitle "&fKeyifli vakitler dileriz." to loop-player for 3 seconds
play sound "entity.player.levelup" with volume 0.5 to loop-player
else if arg 1 is "temizle" or "sil":
loop 100 times:
broadcast " "
broadcast "{@p} &eSohbet &f%player% &etarafından süpürüldü. &a✔"
play sound "entity.item.pickup" with volume 1 to all players
else if arg 1 is "yavaşmod" or "slowmode":
if {sohbet::yavasmod} is false:
set {sohbet::yavasmod} to true
broadcast "{@p} &dYavaş Mod &aAktif! &8(&f{@sm_sure}&8)"
play sound "block.anvil.land" with volume 0.3 to all players
else:
set {sohbet::yavasmod} to false
broadcast "{@p} &dYavaş Mod &cDevre Dışı!"
play sound "block.anvil.break" with volume 0.3 to all players
# --- Akıllı Kontroller ---
on chat:
# Sohbet Kilidi
if {sohbet::kilit} is true:
if player does not have permission "{@y}":
cancel event
send action bar "&c&lSOHBET ŞU AN KAPALI!" to player
play sound "block.note_block.bass" with volume 1 to player
stop
# Yavaş Mod
if {sohbet::yavasmod} is true:
if player does not have permission "{@y}":
set {_fark} to difference between {son::%player%} and now
if {_fark} is less than {@sm_sure}:
cancel event
send action bar "&eYavaş yazmalısın! &f{@sm_sure}" to player
stop
set {son::%player%} to now
# Reklam Engelleme & Uyarı
if message matches "(\.)(com|net|org|xyz|tk|gg|xyz|ml|biz|me)":
if player does not have permission "{@y}":
cancel event
send "{@p} &cReklam içeren mesajlar gönderemezsin!" to player
loop all players:
if loop-player has permission "{@y}":
send "&4&l[REKLAM] &e%player%: &f%message%" to loop-player
