Pircbotx usage for new resub changes

This is how I am solving this:

@Override
public void onMessage(MessageEvent event) throws Exception {
super.onMessage(event);
if (event.getUser().getNick().equalsIgnoreCase(“twitchnotify”)){
//Perform code here e.g. System.out.println(event.getMessage());
}
}