Mod only commands in Java Pircbot

Change that line to (and send me what is says)

try {
    Map userData = event.getTags();
} catch(Exception e) {
    e.printStackTrace();
}

EDIT:
Make sure you are CAP request the twitch.tv/tags because that is needed to get the data, the PircBotX wiki has info on how to do this