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.

how to make commands for console only

Discussion in 'Skript' started by noob skripter, Jun 3, 2020.

Thread Status:
Not open for further replies.
  1. noob skripter

    noob skripter Member

    Joined:
    Jun 3, 2020
    Messages:
    4
    Likes Received:
    0
    helo i am 6 year old boy from sveden i want know how make comand only console only player can do /kit elytra <player>i want console only do how do
    --- Double Post Merged, Jun 3, 2020, Original Post Date: Jun 3, 2020 ---
    why no body answer my it has been so long pls
     
  2. Stefqnutz

    Stefqnutz Active Member

    Joined:
    Sep 23, 2019
    Messages:
    63
    Likes Received:
    1
    First of all, not to be rude but you really need to learn more english as I don't understand a thing from what you said, second of all this is a thread, it can take up to 24-72 hours for someone to actually
    respond.
    As for your problem, what do you mean console only commands? Like commands that can be executed only by the console? If yes, then use this:

    Code (Text):
    1. command consoleonly:
    2.      trigger:
    3.          command sender is console:
    4.                 #do stuff here
    5.          command sender is player:
    6.                send "&cThis is a console only command!"
    7.  
    Haven't tested this but it should work I think.
     
    #2 Stefqnutz, Jun 3, 2020
    Last edited: Jun 3, 2020
  3. Code (Text):
    1. command /YourCommand:
    2.     executable by: console
    3.     trigger:
    4.         send "hi console"
     
  4. Nikd0

    Nikd0 Active Member

    Joined:
    May 30, 2020
    Messages:
    204
    Likes Received:
    19
    I would rather use the solution of Stefqnutz because you can easily change the message there. However your code is also right :emoji_wink:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...