Çözüldü Muteliyken /MSG komutunu kullanmayı engelleme

  • Konuyu Başlatan Konuyu Başlatan ZeusPro
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 1.096
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

ZeusPro

>> Pluginer & Skripter
Katılım
21 Ağustos 2017
Mesajlar
146
Elmaslar
28
Puan
8.985
Konum
Ankara

Discord:

ZeuLeg#0962

Sunucuda essentialsx kullanıyorum.
Bir oyuncuyu muteleyince ./msg gibi komutları kullanabiliyor.
Nasıl Engelleyebilirim?
 
Essentials > config.yml > disabled-commands: > kısmına

Kod:
  - essentials:r
  - eme
  - etell
  - ewhisper
  - pm
  - email
  - m
  - t
  - whisper
  - emsg
  - tell
  - er
  - reply
  - ereply
  - w

Bunları ekleyin.​
 
Kod:
command /mute [<player>] [<int>] [<text>]:
    permission: essentials.mute
    permission message: &cBunu yapmak için yetkin yok!
    trigger:
        if arg-1 is set:
            if arg-2 is set:
                if arg-3 is set:
                    loop 100 times:
                        broadcast " "
                    execute console command "essentials:mute %arg-1% %arg-2%""
                    send "&8&m----------------" to all players
                    send "&bSusturan: &c%player%" to all players
                    send "&bSusturulan: &c%arg-1%" to all players
                    send "&bSebep: &c%arg-3%" to all players
                    send "&bSüre: &c%arg-2%" to all players
                    send "&8&m----------------" to all players
                    set {mute::%arg-1%} to true
                    
on command:
    command is "msg"
    if {mute::%arg-1%} is true:
        cancel event
        send "&cMuteliyken konuşamazsın." to player
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl
Üst