/* ** j###t ########## #### #### ** j###t ########## #### #### ** j###T "###L J###" ** ######P' ########## ######### ** ######k, ########## T######T ** ####~###L #### ** #### q###L ########## .##### ** #### \###L ########## #####" ** ** $Id$ ** ** Class History ** ** Date Name Description ** ---------|------------|----------------------------------------------- ** 24Aug98 subtle start of recorded history ** */ package key.commands; import key.*; import java.io.IOException; import java.util.StringTokenizer; import java.util.Enumeration; public class With extends Command { public With() { setKey( "with" ); usage = "<name>"; } public void run( Player p, StringTokenizer args, String fullLine, CategoryCommand caller, InteractiveConnection ic, Flags flags ) throws IOException { String pName; pName = nextArgument( args, ic ); Player targetPlayer = (Player) getOnlinePlayer( p, ic, pName ); // test to see if the target is online... if( targetPlayer != null ) { if( targetPlayer.isHiding() ) { ic.sendFeedback( "You can't even determine where " + pName + " is." ); } else ic.sendFeedback( targetPlayer.getLocation().with( targetPlayer ) ); } } }