@Override
	public boolean execute(MOB mob, List<String> commands, int metaFlags)
		throws java.io.IOException
	{
		final boolean ifnecessary=((commands.size()>1)&&(commands.get(commands.size()-1).equalsIgnoreCase("IFNECESSARY")));
		final Room room = CMLib.map().roomLocation(mob);
		if(CMLib.flags().isStanding(mob))
		{
			if(!ifnecessary)
				CMLib.commands().doCommandFail(mob,new StringXVector(commands),L("You are already standing!"));
		}
		else
		if((mob.session()!=null)&&(mob.session().isStopped()))
			CMLib.commands().doCommandFail(mob,new StringXVector(commands),L("You may not stand up."));
		else
		if(room!=null)
		{
			final CMMsg msg=CMClass.getMsg(mob,null,null,CMMsg.MSG_STAND,mob.amDead()?null:L("<S-NAME> stand(s) up."));
			if(room.okMessage(mob,msg))
				room.send(mob,msg);
		}
		return false;
	}