Register command at runtime

Discussion in 'Plugin Development' started by AbdulAbdalla, Jan 5, 2012.

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

    AbdulAbdalla

    Hey,
    is there a way to register a command at runtime without adding it to the plugin.yml?
    Best regards
    Zacherl
     
  2. Offline

    AbdulAbdalla

  3. Offline

    Chiller

    You need a plugin yml anyhow...
     
  4. Offline

    md_5

    It needs to be registered in plugin.yml for console commands, you can catch in game commands via onPlayerCommandPreprocess()
    But it is not best practice.
     
  5. Offline

    iffa

    There was dynamic command registering once, until Grum took it away from us.
     
  6. @md_5 Although onPlayerCommandPreprocess() is not to be used for registering it would be much easier and probably more sensible to do it that way in my opinion because then admins would be able to edit command names as has been requested quite a lot.
     
Thread Status:
Not open for further replies.

Share This Page