1. 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 comminuty!

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

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Making a command that does nothing

Discussion in 'Skript' started by Orange, Mar 22, 2020.

Thread Status:
Not open for further replies.
  1. Orange

    Orange New Member

    Joined:
    Mar 8, 2020
    Messages:
    5
    Likes Received:
    2
    Hey, so I am running a PvP server & alot of our players use a mod for another server that automatically runs a command for another server, as our server doesn't have that command it sends them an error message telling them to run /help. I want to disable the command and I was wondering if there was a way to do that with skript so when they run the command nothing happens, Thanks!
     
  2. Wynnevir

    Wynnevir Well-Known Member

    Joined:
    Jul 9, 2017
    Messages:
    1,015
    Likes Received:
    62
  3. Nikola

    Nikola Member

    Joined:
    Jul 10, 2019
    Messages:
    38
    Likes Received:
    1
    Try using this:
    Code (Text):
    1. on command "/examplecommand":
    2.    set {SOMETHINGRANDOM::%player%} to true
    3.  
    That will just set some random variable to true, and it will not display any message at all (not even blank one). Hope this works for you.

    Or, maybe this is even better idea, if you want to completely block the command use (without any messages or variable sets):
    Code (Text):
    1. on command "/examplecmd":
    2.    cancel event
     
  4. Orange

    Orange New Member

    Joined:
    Mar 8, 2020
    Messages:
    5
    Likes Received:
    2
    Thank you! Very helpful it worked
     
  5. Nikola

    Nikola Member

    Joined:
    Jul 10, 2019
    Messages:
    38
    Likes Received:
    1
    No problem! If you need any help in the future, contact me :emoji_slight_smile:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...