public void substarterBegin(String prefix, String userName, String input) { if (substarter.start(winNum)) { System.out.println("Starting give"); g_start.setEnabled(false); g_end.setEnabled(true); registeredUserList.setText(""); prefix = "<b><font color=blue>[" + userName + "]:</font></b> "; input = "Substarter giveaway is starting, make sure to register at http://substarter.com/my-account to participate. Type !substarter for a chance to win a free sub!"; sock.outputToChannel(input, channelName); } else { input = "<font color='red'>[WARNING]: Giveaway already started, perhaps in another chat window.</font>"; } try { toChatScreen(prefix + input, false); } catch (IOException | BadLocationException ex) { Logger.getLogger(IRCBOT.class.getName()).log(Level.SEVERE, null, ex); } }