Emote.java

src/net/sourceforge/pain/logic/event/console/command/Emote.java · 642 B

From the archive pain_0_41.zip

Download the archive   « Back to the archive contents

package net.sourceforge.pain.logic.event.console.command;

import net.sourceforge.pain.logic.fn.*;
import net.sourceforge.pain.logic.event.console.*;


public final class Emote extends CommandHandler {

	public void processCommand() throws Exception {
		String emoteText = commandParams;
		if (emoteText  == null || emoteText .length() == 0) {
			MessageOutFn.outln(console, "Emote what?");
		} else {
			MessageOutFn.outSpace(player, "$n $T", player, emoteText );
			MessageOutFn.outOne(player, "$n $T", player, emoteText );
		}
	}

	public void showHelp() {
		MessageOutFn.outln(console, command.name+": emote");
	}
}

Site Stats

Snippets: 1791
Codebases: 571