How to register listeners from without plugin?

Discussion in 'Plugin Development' started by avatarDr, May 12, 2013.

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

    avatarDr

    I use my own .jar file to start server (by calling org.bukkit.craftbukkit.Main.main(new String[0])) but I need to handle some player events. How can I add listeners from my source project?

    I suppose that I need an instance of JavaPlugin and I have one, but I dunno how to make Bukkit to see/load this plugin.
     
  2. Offline

    MP5K

    Hello avatarDr,
    you could (Reflection) but it may be better if you use a plugin for that.
    if you wan't to use Reflection to register them try take a took at the PluginManager class.
     
Thread Status:
Not open for further replies.

Share This Page