Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

register listener spigot



public class MyClass extends JavaPlugin implements Listener {

    @Override
    public void onEnable() {
        this.getServer().getPluginManager().registerEvents(this, this);
    }

    // rest of your code
}


Source by nullorempty.org #
 
PREVIOUS NEXT
Tagged: #register #listener #spigot
ADD COMMENT
Topic
Name
4+4 =