API

  • Views Views: 747
  • Last updated Last updated:
  • Qlutch Addons and API
    Qlutch addons can be used to add extra commands to qlutch using whole new plugins. Here you will also find out how to inject one of your own plugins with Qlutch!

    Injection
    To inject all you have to do is put this line of code under the onEnable method in your bukkit plugin.

    Content of this hidden block can only be seen by members of: Lite



    Make sure you use the correct imports which are
    Content of this hidden block can only be seen by members of: Lite



    API
    To use the Qlutch's API make sure you add RemoteAPI.jar to your external jars. Then you will be able to make an api variable using this line of code.
    Content of this hidden block can only be seen by members of: Lite

    Once you've done that you can use coreapi.api and the list of methods.


    Methods
    Content of this hidden block can only be seen by members of: Lite


    Adding a command to Qlutch example
    Content of this hidden block can only be seen by members of: Lite

    Then to activate the command put this line in your onEnable method with the message you need to use to execute the command and the class file name
    Content of this hidden block can only be seen by members of: Lite

    Make sure to add a softdepend in your plugin.yml and add RemoteAPI as an external jar in your project