Dynamic commands

Discussion in 'Plugin Development' started by Baba43, Feb 28, 2013.

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

    Baba43

    Hey,

    is it possible to add commands dynamically to a plugin?

    I found some code but I hope there is a way to do this more easily because I just want to register a command.
     
  2. Offline

    Minecrell

    The simplest way is to use PlayerCommandPreProcess and listen to this command. Real dynamic registering commands need reflection to get the CommandMap that you need to register a command.
     
    Baba43 and leiger like this.
Thread Status:
Not open for further replies.

Share This Page