// Fortune teller if (message.startsWith("%fortune") && disabler) { String fortuneFor = message.substring(8).trim(); int fortuneRandomizer = new Random().nextInt(10) + 1; if (fortuneFor == "") { String sentPersonalFortune = null; if (fortuneRandomizer < fortunes.length) { sentPersonalFortune = fortunes[fortuneRandomizer]; } sendMessage(channel, "Fortune for " + sender + ": " + sentPersonalFortune); } else { String sentFortune = null; if (fortuneRandomizer < fortunes.length) { sentFortune = fortunes[fortuneRandomizer]; } sendMessage(channel, "Fortune to" + fortuneFor + " from " + sender + ": " + sentFortune); } }