1PluginManager pm = Bukkit.getPluginManager();
2
3 pm.registerEvents((Listener) this, this);
4 pm.registerEvents((Listener) new ClassName(), this);
5
6//This will register the events in the main class and in other class
7//while not taking up much room and being easy adapt.