The right way to do commands?

Discussion in 'Plugin Development' started by Zenexer, Jan 19, 2011.

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

    Zenexer

    I keep seeing all this command-related nonsense that gives me the feeling I am doing something wrong. Right now, I am installing a hook via PlayerListener. However, I see this handy-looking Command class, and something to do with commands in Plugin.getDescription(). Is there a better way to implement plugins? I see no way to "install" a Command instance, but the plugin description bit makes me wonder if there's a way to do so via YAML.
     
  2. Offline

    Archelaus

    Do you mean commands such as "/hello"?
     
  3. Offline

    Zenexer

    Both /hello and--here's the tricky part--/#hello. Right now, my current method prevents me from intercepting console commands, at least if they are sent from the console. All my commands have to be attached to a player.
     
  4. Offline

    Archelaus

    Oh, console commands. I don't think it's currently implemented in the API.
     
Thread Status:
Not open for further replies.

Share This Page