rendered paste body public void onKick(String channel, String kicker, String kickerLogin, String kickerHostName, String kicked, String reason) { if(kicked.equals(getNick())) { joinChannel(channel); try { BufferedReader input = new BufferedReader(new FileReader("verbs.txt")); String[] actions = input.readLine().split(","); input.close(); input = new BufferedReader(new FileReader("adjectives.txt")); String[] adjs = input.readLine().split(","); input.close(); input = new BufferedReader(new FileReader("nouns.txt")); String[] nouns = input.readLine().split(","); input.close(); sendAction(channel, actions[(int)(Math.random() * actions.length)] + " " + kicker + " with " + adjs[(int)(Math.random() * adjs.length)] + " " + nouns[(int)(Math.random() * nouns.length)]); } catch(IOException e) { System.out.println("Could not open a word file: " + e); e.printStackTrace(System.out); } quitServer("Was kicked..."); System.exit(0); return; } sendMessage(channel, kicker + ": That wasn't nice!"); slapUser(kicker, true); if((int)(Math.random() + 0.5) == 1) return; sendMessage(channel, "Although he probably deserved it."); slapUser(kicked, true); }