detect skript command "on command event"

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

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

Status
Not open for further replies.

dudle

Active Member
Jan 31, 2017
135
0
16
45
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.
[doublepost=1519828930,1519736936][/doublepost]BUMPPP
 
Do you mean when you do /help it shows commands defined by your custom skripts?
 
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
 
Status
Not open for further replies.