Advertisement
ZP4RKER

Untitled

Sep 19th, 2015
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. public Main extends JavaPlugin {
  2.  
  3. public void onEnable() {
  4. getServer().getPluginManager().registerEvent(this, new MyListener(this)); // new MyListener(this) is the instance
  5. // It is passing the main class as an argument which is what we want
  6. }
  7.  
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement