package net.sourceforge.pain.logic.event.console.command; import net.sourceforge.pain.logic.event.console.*; import net.sourceforge.pain.logic.fn.*; public final class Say extends CommandHandler { public void processCommand() throws Exception { String textToSay = commandParams; if (textToSay == null || textToSay.length() == 0) { MessageOutFn.outln(console, "Say what?"); } else { MessageOutFn.outOne(player, "You say {w'$t'{x", textToSay); MessageOutFn.outSpace(player, "$n says '{w$T{x'", player, textToSay); } } public void showHelp() { MessageOutFn.outln(console, command.name+": sends a message to all awake players in your room."); } }