how to register event spiot

Solutions on MaxInterview for how to register event spiot by the best coders in the world

showing results for - "how to register event spiot"
Alina
23 Oct 2020
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.