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.

detect skript command "on command event"

Discussion in 'Skript' started by dudle, Feb 27, 2018.

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

    dudle Active Member

    Joined:
    Jan 31, 2017
    Messages:
    135
    Likes Received:
    0
    how can I make it so whenever someone performs a script-made command it'd also be considered in the on command event? Because it only detects non-script made commands, like /help etc.
    --- Double Post Merged, Feb 28, 2018, Original Post Date: Feb 27, 2018 ---
    BUMPPP
     
  2. Harvey

    Harvey Member

    Joined:
    Jan 16, 2018
    Messages:
    18
    Likes Received:
    0
    Do you mean when you do /help it shows commands defined by your custom skripts?
     
  3. TPGamesNL

    Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,501
    Likes Received:
    108
    Medals:
    As far as I know, the on command event also detects Skript commands, but I could be wrong. Njol's old Skript documentation (couldn't find on command on here for some reason, might have completely overseen it but okay) says
    Called when a player enters a command (not necessarily a Skript command).
    Please define a custom command if possible instead of using this event. Use this event only if you need to perform some action on multiple command, e.g. to prevent commands under certain circumstances, to log commands, or to add Skript checks to commands from other plugins that cannot be solved by changing the permissions of the player(s).
    so I think it should also be called with Skript commands
     
Thread Status:
Not open for further replies.

Share This Page

Loading...