title: How to fire events using Bukkit API?
body: <p>I was looking at how to create and fire events using Bukkit API.</p>
  <pre><code>public class PlayerDisconnect implements Listener {
      @EventHandler
      public void onQuit(PlayerQuitEvent event){
          //code
      }
  }
  </code></pre>
  <p>I mean, doesn't matter the name of the method (in this case <code>onQuit</code>, I can use <code>onDisconnect</code>, <code>onLeave</code>, etc. and it will still be called by <code>PlayerQuitEvent</code>), it calls every method using <code>PlayerQuitEvent</code> as a parameter. I want to be able to replicate that behaviour.</p>