Solved Need help with Skript

Discussion in 'Bukkit Help' started by maks244, May 28, 2020.

  1. Offline

    maks244

    I'm trying to make a script that looks for people that use the command /dc. If it finds it, it needs to see if the exact command was /dc viewrecap 0. If it was that then let the player do it, if no then don't let the player run the command. Basically I want people to be able to run /dc viewrecap 0 but not a single other command with /dc.

    This is what I have so far
    Code:
    on command "/dc":
        if command contains "/dc viewrecap 0":
            stop
        if player doesn't have permission "{@permission}":
            message "{@nopermissions}"
            cancel event
     
  2. Offline

    KarimAKL

    @maks244 You'll probably get more help on the Skript Forums.

    Also, what's the problem with the script?
     
  3. Offline

    maks244

    It doesn't work. It still blocks the command /dc viewrecap 0
     
  4. Offline

    maks244

    I found out how to do it. For anyone wondering how, here's the code
    Code:
    on command "dc":
        if complete command is not "dc viewrecap 0":
            if player doesn't have permission "{@permission}":
                message "{@nopermissions}"
                cancel event
     

Share This Page