Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to register event 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.
 
PREVIOUS NEXT
Tagged: #register #event #spiot
ADD COMMENT
Topic
Name
5+7 =