Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Main extends JavaPlugin {
- public void onEnable() {
- getServer().getPluginManager().registerEvent(this, new MyListener(this)); // new MyListener(this) is the instance
- // It is passing the main class as an argument which is what we want
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement