Command arguments w/ annotation command libs

Discussion in 'Plugin Development' started by Pizza371, Jul 22, 2014.

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

    Pizza371

    Hi,
    I wondered if it's possible with the dozen of command helping libraries to create command with args which are dynamic (e.g. player), this is the one I'm using: http://forums.bukkit.org/threads/lib-annotation-based-command-system.195554/

    Or will I have to do this myself via the normal command system? Has anyone used this before?
    I'm looking to move on with my project but this is in my way,
    Thanks!
     
  2. Offline

    fireblast709

    Pizza371 well you have a nice example in that thread, just use that?
     
  3. Offline

    Pizza371

    fireblast709 AFAIK it doesn't allow for "custom" arguments.
    I need to get what a player types, not a pre-defined argument.
    e.g.:
    @Command(name = "name.arg1.arg2.<This bit for me to parse>")
    public voi..

    I'm not sure if it's possible though, I would've expected someone else to try this but no-one seems to have said anything. Maybe I will have to register a command like that with the normal way?
     
Thread Status:
Not open for further replies.

Share This Page