if command not working

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Yoshep

Member
Jul 4, 2019
15
0
1
what's wrong with my skript???

me creating variable and event for block command on list {var::list::*} only player can use command

not error but blocked all command :emoji_mask::emoji_mask::emoji_mask::emoji_mask::emoji_mask: this is funny..... me worked for fix this for 1 weeks but not fixed.....
{var::wl.cmd::*} this is example for list allowed command

Code:
on command:
    if {var::%player%} is set:
        if command is not {var::wl.cmd::*}
            cancel event
            send "{@prefix}{@dg_cmd_not_allow}" to player
            send "{@prefix}{@dg_cmd_can_allow}" to player
            stop

how to fix??
can help me please....
 
Hey, im assuming you are storing strings in the {var::wl.cmd::*}, so you can try checking it as strin also if it CONTAINS the list, in your case:

Code:
on command:
    if {var::%player%} is set:
        if {var::wl.cmd::*} does not contain "%command%":
            cancel event
            send "{@prefix}{@dg_cmd_not_allow}" to player
            send "{@prefix}{@dg_cmd_can_allow}" to player
            stop
 
thanks this works
but not this
if {var::wl.cmd::*} does not contain "%command%":

this worked....
if {var::wl.cmd::*} does not contain command:

so .... me DM you sorry for my bad english....
can you help me again??