public void onMessage(String channel, String sender, String login, String hostname, String message, String hostmask) { if (message.startsWith("Playing: [")) { if (message.endsWith(".mp3 ]")) { ban(channel, hostmask); kick(channel, sender, "The mp3 script isn't welcome. Turn it off. Your ban will be removed in 1 minute"); } } }