End.java

key0-96/src/commands/End.java · 1.1 KB

From the archive key0-96.tar.bz2

Download the archive   « Back to the archive contents

/*
**               j###t  ########## ####   ####
**              j###t   ########## ####   ####
**             j###T               "###L J###"
**          ######P'    ##########  #########
**          ######k,    ##########   T######T
**          ####~###L   ####
**          #### q###L  ##########   .#####
**          ####  \###L ##########   #####"
**
**  Class History
**  
**  Date        Name         Description
**  ---------|------------|-----------------------------------------------
**  12Jul97     merlin       created this command
**  21Jul97     subtle       renamed to End
**
*/

package key.commands;

import key.*;
import java.io.IOException;
import java.util.StringTokenizer;

/**
  *  This command is intended to return the context of the player
  *  back to the player's own context - the player itself.    
 */
public class End extends Command
{
	public End()
	{
		setKey( "end" );
		usage = "";
	}

	public void run( Player p, StringTokenizer args, String fullLine, CategoryCommand caller, InteractiveConnection ic, Flags flags ) throws IOException
	{
		p.setContext( p );
		ic.sendFeedback( "Now referencing '" + p.getName() + "'" );
	}
}

Site Stats

Snippets: 1791
Codebases: 571