Cómo registrar el evento Spiot

PluginManager pm = Bukkit.getPluginManager();
			
			pm.registerEvents((Listener) this, this);
			pm.registerEvents((Listener) new ClassName(), this);

//This will register the events in the main class and in other class
//while not taking up much room and being easy adapt.
Sam CM