Yardım

Myper

Kızıltaş Madencisi
En iyi cevaplar
1
Kod:
on command:
    if {bcmd::blockedcommands::*} contains "%command%":
        if player has the permission "bcmd.admin.bypass":
            stop trigger
        else:
            cancel the event
            message "&c&lError &8&l&o> &fYou are not permitted to type this command !"
            send "&5&lBlockedCommands &8&l&o> &7&o%player% &ftried to type command &7&o%command% &f! " to the console
    else:
        stop trigger

Arkadaş bu kodda hiçbir error almıyorum ama sunucuda {bcmd::blockedcommands::*} listesinin içinde olan bir komutu kullandığımda komutu girmeme izin veriyor. Nedne böyle bir sorun yaşıyorum yardım ederseniz sevinirim. @MiracOrsMirac
 

ShiodomeMiuna

Nether Yerlisi
En iyi cevaplar
11
PHP:
on command:
    loop {bcmd::blockedcommands::*}:
        if loop-value is command:
            player don't have permission "bcmd.admin.bypass":
                cancel event

bu kodun haricinde else eklemene gerek yok. kod else eklemezsen çalışacaktır.
 

Myper

Kızıltaş Madencisi
En iyi cevaplar
1
PHP:
on command:
    loop {bcmd::blockedcommands::*}:
        if loop-value is command:
            player don't have permission "bcmd.admin.bypass":
                cancel event

bu kodun haricinde else eklemene gerek yok. kod else eklemezsen çalışacaktır.
Teşekkür ederim, işe yaradı :)
 

MeeRach

Vi3e
En iyi cevaplar
0
PHP:
if "%command%" contains "{bcmd::blockedcommands::*}"
Çalışırmı bilmem :/
 
Üst