Help with hooking?

Discussion in 'Plugin Development' started by James | Buchanan, Oct 24, 2011.

Thread Status:
Not open for further replies.
  1. hello, i need my plugin to be able to be hooked into other plugins and provide an info-tidbit on their plugins. but one problem, i dont know how :mad:!

    heres what i want other plugins to type in to fetch my plugin:

    easyInfo.setPluginInfo(<pluginName>,"Plugin info");
    (easyInfo is my plugin name)

    any ideas?
    (sorry for the straight-forward post, i hope its not too hard to understand)
     
  2. Offline

    Randy Schouten

    Basically what you want to do, is create a method, and make it public.
    So in you're case, inside of the "easyInfo" class, create the method "setPluginInfo(String pluginname, String plugininfo)".
    Then inside of your plugin, you can use "pluginname" and "plugininfo".
     
  3. ok, thanks!
    hust something i was trying to find out myself but it just didnt work :p
     
Thread Status:
Not open for further replies.

Share This Page