Command Executor

Discussion in 'Plugin Development' started by canemonster15, Mar 15, 2014.

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

    canemonster15

    Previously when making plugins I used getServer().getCommand("example").setExecutor(new Example()). I saw that is no longer in the Bukkit API. I saw getServer().getPluginCommand("example").setExecutor(new Example()). Are those two the same thing.
    Thanks.
     
  2. Offline

    97WaterPolo

    canemonster15
    This probably isn't the right forum, your looking for Plugin Development forum where you would receive more help then here.

    Also, I do believe the methods are the same, I haven't used it in awhile so I can't be 100% sure.
     
  3. Offline

    Necrodoom

    Moved to correct section.
     
  4. Offline

    Bionicrm

    From JavaDocs:

    getCommand():
    Gets the command with the given name, specific to this plugin. Commands need to be registered in the PluginDescriptionFile to exist at runtime.

    getPluginCommand():
    Gets a PluginCommand with the given name or alias
     
Thread Status:
Not open for further replies.

Share This Page