Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Whatever implements EventListener {
- @EventHandler
- public void onEvent(IRCEvent e) {} // Catches all children "IRCEvent"
- @EventHandler
- public void onCustomizedEventHandlerMethodName(JoinEvent e) {}
- @EventHandler
- public void onInviteEvent(InviteEvent e) {
- mIrc.join(e.getSession(), e.getChannel());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment