SimpleCommandMap

Discussion in 'Plugin Development' started by CorrieKay, Feb 19, 2013.

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

    CorrieKay

    Does anyone know where all references to the SCM are held in? I'd like to do something fancy :3

    I tried using VisualVM, but its not being any help
     
  2. Offline

    chasechocolate

  3. Offline

    desht

    The PluginManager (implementing class: SimplePluginManager) holds the reference to the SimpleCommandMap object. There's no way of getting at it without using reflection, however. I'm guessing you want to dynamically register new commands, ones that aren't in your plugin.yml? You could look at http://forums.bukkit.org/threads/dynamic-registration-of-commands.65786/ but any such approach would be breakage-prone...
     
Thread Status:
Not open for further replies.

Share This Page