Separate names with a comma.
Comments in 'Plugin Development' started by aDevPE, Feb 27, 2016.
how can i change /msg , /tell ?
In the pocketmine root code
No you can override it with CommandPreProcessEvent
Changing the source works as well, the proper way to do it would to be unregister the command and then register your replacement or changing the executor.
I realy think the proper way is using preprocess event
Or unregister it lol
There is no processor lol. It's PlayerCommandPreprocessEvent
Yeah meant that
So your saying that checking every command executed for a specific command, canceling it then executing your code is better and more proper than un-regesitering the command and registering your command or setting the executor?
I said "OR" unregister it
And using the CommandEvent is much more easy.
If you can provide an small code for unreg and reg i will shut up
The proper way to do that is unregistering.