#How can I detect when a player uses a command?

1 messages · Page 1 of 1 (latest)

feral walrus
#

(any command not a specific one)

amber root
#

CommandPreProcessEvent

#

similar name to that if its not the exact name

feral walrus
#

PlayerCommandPreprocessEvent

#

Thanks!

proud delta
#

wouldnt onCommand work?

feral walrus
#

I thought about that but I'm doing that on a separate class so I would have to set it as an executor of a command

amber root
#

so that onCommand would only fire if the reistering command was called